Send Email with a .NET 6 Web API using Mailkit & SMTP 📧

🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: https://dotnet8.patrickgod.com 💖 Support me on Patreon for exclusive source code access:   / _patrickgod   🐦 Let's get social on X: https://x.com/_PatrickGod 🔗 Let's connect on LinkedIn:   / patrickgod   💻 GitHub: https://github.com/patrickgod/SimpleE... 📚 My .NET & Blazor Udemy Courses: 🚀 Free Blazor AI crash course: https://dotnetwebacademy.com/blazor-a... --- 🔥 Blazor E-Commerce Course: https://www.udemy.com/course/blazor-e... 🔥 Blazor Bootcamp: https://www.udemy.com/course/blazor-w... 📑 Table of Contents: 00:00 Send Email with a .NET 6 Web API using Mailkit & SMTP 📧 01:55 Create an ASP.NET Core Web API Project 02:33 Install Mailkit 03:39 Create a Controller 04:00 Use Ethereal as SMTP Service 04:41 Implement SendEmail() method 10:38 Test with Swagger 11:45 Implement and Inject an EmailService 15:52 Use the AppSettings for Host, Username & Password 18:31 Change the Controller 19:17 Final Test #DotNet #WebAPI #PatrickGod