Skip to content

A sample repository which shows how to implement an email sender in ASP.NET Core

License

Notifications You must be signed in to change notification settings

georgy-kirilov/asp-net-core-email-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sample Email Sender in ASP.NET Core

Required NuGet Packages

CLI

dotnet add package MimeKit
dotnet add package MailKit

Package Manager Console

Install-Package MimeKit
Install-Package MailKit

Gmail configurations

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

WARNING

Do not upload your appsettings.Development.json to source control as this will expose your sensitive gmail data

Useful links

About

A sample repository which shows how to implement an email sender in ASP.NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages