Alex Blogs Too

MHO (My Humble Opinion) about everything.

Wednesday, November 14, 2007

System.Net.Mail.SmtpClient.Send

Ok.

Thanks to MS for moving it from System.Web.Mail t0 System.Net.Mail (in .NET 2) ,
and improving the API .
And writing the code that replaces CDO.
And giving an option to use embedded resources ( besides attachments)

But WHY !! WHY when I send the mail , there is a delay , or executes only when thread is closed ??

The answer and the solution is here :
http://forums.microsoft.com/msdn/showpost.aspx?postid=164793&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=0

( On the second page there is the answer from "jptros" . Also look at the post from Damienb about solving CPU problem)

Took about an hour to find the reason . Annoying and stupid .

Also following links are usefull resources :
http://www.systemwebmail.com/
http://systemnetmail.com/
System.Net.Mail and embedded images