https://elanderson.net/2017/02/email-with-asp-net-core-using-mailgun/
Email with ASP.NET Core Using Mailgun