We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem in sending Large Data to mail


When i send mail it throw the following error(USING ASPOSE.EMAIL)

“The operation has DATA time out.Timeout 100000 has been reached”

i used the following code to send mail
I just use online db to provide content

MemoryStream mhtmlStream = new MemoryStream();
doc.Save(mhtmlStream, SaveFormat.Mhtml);
mhtmlStream.Position = 0;
MailMessage message = MailMessage.Load(mhtmlStream, new MhtmlLoadOptions());
message.Subject = reportParameters.emailSubject;
message.From = reportParameters.fromMailId;
message.To = reportParameters.toMailId;
SmtpClient client = new SmtpClient(reportParameters.mailHostName, reportParameters.mailPort, reportParameters.fromMailId, reportParameters.fromMailPassword);
client.SecurityOptions = SecurityOptions.SSLExplicit;

Pls provide the information for fast response…


We are sorry for a delayed response.

In case of very large data, please extend the TimeOut of SmtpClient to give it ample time to be sent out. Sometimes, the network congestion may lead to such behavior. Please try extending the range of Timeout property and let us know if it still creates issue. Also, please share your sample input file that you are trying to send out so that we can investigate the issue further at our end.