Send Email with a .NET 6 Web API using Mailkit & SMTP 📧
Patrick God
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: https://dotnet8.patrickgod.com
💖 Support me on Patreon for exclusive source code access: https://patreon.com/_PatrickGod
🐦 Let’s get social on X: https://x.com/_PatrickGod
🔗 Let’s connect on LinkedIn: https://www.linkedin.com/in/patrickgod/
💻 GitHub: https://github.com/patrickgod/SimpleEmailApp
📚 My .NET & Blazor Udemy Courses:
🚀 Join the .NET Web Academy: https://dotnetwebacademy.com
—
🔥 Blazor E-Commerce Course: https://www.udemy.com/course/blazor-ecommerce/?couponCode=YOUTUBE
🔥 Blazor Bootcamp: https://www.udemy.com/course/blazor-webassembly/?referralCode=647B4EAACD6D8E4E6872
📑 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