How to send mail with large size attachment using System.Net.Mail to Google Apps ?

Posted by Preeti on Stack Overflow See other posts from Stack Overflow or by Preeti
Published on 2010-05-19T11:46:01Z Indexed on 2010/05/20 5:00 UTC
Read the original article Hit count: 245

Hi,

I am trying to send mail with large size attachment upto (1MB,2MB). But sending mail fails.(Sending to Google Apps) as:

MailItemEntry[] entries = new MailItemEntry[1];
String EmlPath = "C:\\testemail.eml";                                        
String msg = File.ReadAllText(EmlPath);
entries[0] = new MailItemEntry();
entries[0].Rfc822Msg = new Rfc822MsgElement(msg);

How can i divide attachments into multi part?

Exception I am getting while migrating this EML to Google apps is: {"The request was aborted: The request was canceled."}

© Stack Overflow or respective owner

Related posts about c#

Related posts about system.net.mail