Send Email from .NET the EASY Way | C# Microservice Course (Episode 5)

Опубликовано: 22 Ноябрь 2024
на канале: Roberts Dev Talk
7,143
168

In this tutorial I'll show you how to send an email from .NET using the FluentEmail library and format the email with a Razor template. I'll also show you how to configure FluentEmail to work with dependency injection!

Source code: https://github.com/chrismroberts/csha...

☕️ Support us with a coffee! (Or.. beer 🍺)
https://www.buymeacoffee.com/robertsd...

I'm using an SMTP server to send the email. This example uses .NET 6 but the dependency injection will work with .NET Core 3.1 and above.

I'm building here on a project we've been working on in our C# Microservice series, check out the playlist here    • C# Microservice Course  

📧 📫 Join us on our developer journey! Sign up to our email newsletter:
https://robertsdevtalk.com

🐦 Follow us on Twitter:
  / robertsdevtalk  

🎶 Music by Epidemic Sound:
https://www.epidemicsound.com/referra...

0:00 Intro
0:47 Packages you need to install
1:25 Configure FluentEmail (with dependency injection)
3:03 Injecting IFluentEmail
3:37 Razor Template
4:02 Creating and Sending an Email
5:03 Run the project
5:38 Outro

Some icons in this video kindly provided by FlatIcon from Freepik
https://www.freepik.com
https://www.flaticon.com/

Disclaimer - some of our links are affiliate links, which means that we receive a small commission for any sales made via those links, at no extra cost to you - so a great way to support our channel! Thank you so much for your support 😊

#csharp #microservice #dotnet