Using MailKit with Gmail in .netcore 2.x

Usage

While logged into your Google account, enable less secure apps.

Go into the Constants class and change the variables there to match your Gmail credentails.

Add the appropriate people to the Recipents list.

Edit the template.html file to change the email output. You can preview the output by viewing the output.html and output.eml files that are generated when the program is run.

When you are ready to actually send the email, update the SendEmail variable and run the program again.