Note that if you want to copy this code, you'll need to set up your SmtpSettings as shown on the GitHub page.