I was looking at the Email Logging option in the 5.0 Enterprise Library. The EmailMessage.cs class uses the synchronous Send method of the SMTP Client object:
public virtual void SendMessage(MailMessage message)
SmtpClient smtpClient = new SmtpClient(configurationData.SmtpServer, configurationData.SmtpPort);
smtpClient.EnableSsl = configurationData.UseSSL;
Any reason why we are not using SendAsync? Are there any concerns that the calling methods will be blocked by this synchronous call?
SendAsync by the way behaves weird and I had to write my own Thread handling previously on top of the Send method. I wonder if this is why this is not used currently?