Last post Feb 22, 2007 05:44 PM by newbie06
Feb 22, 2007 02:10 PM|newbie06|LINK
I am writing email to the IIS Server's SMTP service pickup directory. Once the email files found in that directory are processed and delivered over SMTP I would like to receive a success or
failure message so that I can update my QueuedEmails table in my database.
I know that if the delivery process fails, the files are stored in a queue directory for delivery at another time. If a fatal error occurs (such as a DNS resolution error), the files are moved
to the Badmail directory.
Can I receive a message back so that I can also update my database table with true or false depending if the email has been sent or not.
Feb 22, 2007 05:44 PM|newbie06|LINK
Ok, I wrote this piece of code. Now how do I catch the return value from the DeliverNotificationsOptions
//Describes the delivery notification options for e-mail.
What is the return value?????
int i = smtpClient.Sent(mailMessage);
bool b = smtpClient.Send(mailMessage);