Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Exception of type 'System.OutOfMemoryException' was thrown.

$
0
0
Hi Support,

I am getting error while sending email without attachment. I am using Aspose.Email.dll, v6.9.0.0.  Below is the exception :

Inner exception: "Exception of type 'System.OutOfMemoryException' was thrown."

Stack Trace:
"   at Aspose.Email.Mail.SmtpClient.#=qXpJ35R2Kgz2MYmAGI$rjDA==(IConnection #=qDcF0lfo79WbpwdX1lX3y5w==, IEnumerable #=qPnntbmwKRLjjz1AteckEVQ==, EventHandler`1 #=qnVW_C0EsjJEndxMvtVDIh8ytS7zRWeDnHnShRAZbIgc=)
   at Aspose.Email.Mail.SmtpClient.Send(MailMessage message)"

I am sending email in iteration and after 100 or 200 items, smtpClient.Send(message); method throw out of memory exception.

Note:
1. Exception only came when memory cross 220 mb.
2. Object of Aspose.Email.Mail.SmtpClient class never release its memory.

Please suggest me what went wrong.

Viewing all articles
Browse latest Browse all 1367

Trending Articles