What possible errors could I expect to recieve in System.Net.Mail.SendCompletedEventHandler?

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?


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.

Need Your Help

How to read 'n' following tags after each selected node

vb.net xpath html-agility-pack

I'm trying to get each player stats from the following HTML table using VB .NET and HTML Agility Pack (HAP), but I don't know how to select the tags after each player row.

What is a good approach for safe concurrent updates in a relational database?

java concurrency database-concurrency

I'm writing a Java app to update a relational database (currently H2). I have a process which does the following:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.