Hi Andrew,
Based on my understanding, you have the scenario of sending a lot of emails
with .Net2.0, you want to get some information of how do this efficiently.
Yes, I agree that it is better for us to do asynchronized smtp emailing for
lots of emails sending. Then the system will spawn a background thread from
Thread pool for us to do the actual sending work. And our UI/main thread
will not be blocked from the code and continue to issue another email
sending work.
In .Net2.0, we can use SmtpClient.SendAsync() method to issue the
asynchronize emailing. Before calling this method, we should first register
the callback function with SmtpClient.SendCompleted event. And in the
callback event handler, we can access the exception or error in
AsyncCompletedEventArgs.Error property.
The link below talks about using .Net2.0 send emails:
"Send Mails from within a .NET 2.0 Application"
http://developer.com/net/net/article.php/11087_3511731_2
Hope this helps
Best regards,
Jeffrey Tan
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Andrew Robinson - 22 Nov 2005 17:26 GMT
Jeffrey,
Thanks for the reply. Any info on the following would be really helpful:
"At a high level and using .NET, what is the best way to handle
non-deliveries and bounced email? Can I do this with
System.Net.Mail.SmtpFailedRecipientException?
System.Net.Mail.SmtpStatusCode?"
Good article that you pointed me to.
Thanks!
> Hi Andrew,
>
[quoted text clipped - 28 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 23 Nov 2005 10:21 GMT
Hi Andrew,
I can not find any article talks about SmtpFailedRecipientException and
SmtpStatusCode. I am not sure of what information about these classes you
want, I think we can use look up its members in MSDN, then use its members
to get extra information of the current smtp status or exceptions, it
should not be much difficulties.
If you have any additional concern or obstacles, please feel free to tell
me, thanks
Best regards,
Jeffrey Tan
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.