I am using the SendAsync method to send some emails out. What different errors could possibly be returned in the AsyncCompletedEventArgs in the SendCompletedEventHandler? Is there recommended practices for handling these?
views:
23answers:
1
A:
Anything is possible here, you might be trying to talk to a particularly cranky SMTP server. You can't handle errors in your code, your code can't change the way the server works. It takes a human to figure out why the server doesn't like your message. The error codes that can be returned by an SMTP server are otherwise documented, review the SmtpStatusCode enum.
Hans Passant
2010-01-16 14:31:44