Skip to content
Learn

Lesson 2 ยท Step 1 of 7

What the library actually does

Why. It is not SES and it is not a framework. It is a small sender with file templates.

All steps in this lesson
  1. 1. What the library actually does
  2. 2. Sit Email next to Contact.Api
  3. 3. Two files per template
  4. 4. Create the sender from the environment
  5. 5. Configure SMTP without putting secrets in git
  6. 6. Prefer Secrets Manager in AWS
  7. 7. Prove the library, then stop

Mikepattyn.Email is a .NET 10 library. It reads a subject file and an HTML file, fills {{placeholders}}, and sends through MailKit over SMTP.

  1. Template filessubject + html
  2. EmailSenderrender
  3. MailKitSMTP
  4. Zohosmtppro.zoho.eu

The SMTP password can come from an environment variable or from AWS Secrets Manager. That is the only AWS hook in this package.

Open Mikepattyn.Email