How to automate sending mail

  • Thread starter Thread starter Lokanathan
  • Start date Start date
L

Lokanathan

I want to send a email (i am using ASP.net with C# as
code behind) to a person on a perticular date and
time..say if the user composes a mail today and selectes
that this mail should reach after 10 days and at
10:00Am...and another user composes a mail today and
specifies that the mail has to be sent after 4 days and at
5:00pm..Pls tell me where i have to specify the delivery
date and time so that the email will be sent at that
perticular date and time...
 
This is not built-in functionality of any SMTP products that I know of.

If you write the e-mail to a database, you can add fields like "date and
time to send". Then if you write another application that runs in the
background, it can sleep for 10 minutes at a time, then wake up and look to
the database to find any messages that should have been sent already. If it
finds one, it sends it. If send was successful, it deletes it. It loops
until there are no more "waiting" messages to send, then falls back to
sleep.

It's pretty straight-forward coding. You may want to write this as a
service. I hope this helps.
--- Nick
 
Back
Top