CLI
dotnet add package MimeKit
dotnet add package MailKit
Package Manager Console
Install-Package MimeKit
Install-Package MailKit
To allow external apps to send emails, the following settings need to be configured in your Google Account:
- Go to: https://myaccount.google.com/apppasswords
- After you have authenticated, you need to generate a new application password
- Then copy and paste the generated password inside your
appsettings.Development.json