Monday, March 26, 2012

System.Net.Mail force or set send time/delay

Hi

Is it possible to when creating and sending an email in .NET 2.0 to specify the time you want it sent. Just like in Outlook, you can say, deliver on "Date @dotnet.itags.org. Time".

Looked at VS IDE and no options are given.

Thanks
Anthony

No, scheduled emails requires an application that stays alive for the duration of the schedule, and the .NET framework can't be responsible for such tasks.

You will have to take care of the scheduling and sending yourself, e.g by storing the email in a database and have a running process (a Windows Service) that continually polls the database and checks if there's something to send.

0 comments:

Post a Comment