How to send recurring emails in C# .NET using SendGrid and Quartz.NET
This tutorial demonstrates how to send recurring emails using Twilio SendGrid and Quartz.NET in a C# .NET application. The project creates a new worker template project, integrates Quartz.NET, and configures it to run the SendMailJob every 15 seconds. The job uses the SendGrid API to construct an email and submit it to the SendGrid service. The program logs "Email queued successfully!" when the email is sent, but notes that this does not necessarily mean the recipient received the email. The project also showcases how to use user secrets to configure sensitive configuration such as the SendGrid API key, providing a secure way to store and load secrets outside of source control.
Company
Twilio
Date published
Jan. 10, 2022
Author(s)
Niels Swimberghe
Word count
2463
Language
English
Hacker News points
None found.