Subject: Sending mail async, mystical error
Date: 2012-03-22 18:26:03
From: Emanuel Lundman
Source: sending-mail-async-mystical-error
----------------------------------------------------------------------

Hi all, started sending mails async in our webapp. 

Seems to work fine except for sometimes when we get a "SmtpException: Another operation is pending" error. 

Don't get what causes this and haven't found anything good googling!?

What could cause this type of error?




Could it be that we loop through a couple of recipients, not many at all though, and creating the mail for each recipient is to fast?

But shouldn't we in that case be able to send more than one mail async using the same connection?





Exception
ComponentPro.Net.Mail.SmtpException: Another operation is pending.
> at ComponentPro.Net.Mail.SmtpClient.ଋ(AsyncCallback ਜ, Object ਝ, MethodInfo ॡ, Object[] ଌ)
> at ComponentPro.Net.Mail.SmtpClient.BeginSend(MailMessage mail, AsyncCallback callback, Object state) 

and so on..

Please give me hint ;)

Best regards

Emanuel





---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index