Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How could I send the user an e-mail in ASP.NET when there is only 1 day left till an event?

So I’m making an appointment scheduler. I want my system to send the user an e-mail when the upcoming event is tomorrow. I’m storing every appointment in an SQL database.

I don’t know how to check continuously if the date is within a day instead of only checking it once I load the View that lists these appointments.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I suggest you use existing scheduling engines such as Hangfire, Quartz.NET or similar

That way you can make recurring job that triggers once a day, checks for appointments and then send an email.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading