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."}
Question on Google Forum
One solution may be to use multipart zip (or other compression format that supports a similar concept) files and send each file in a seperate email.
At the least, GZip supports multipart compression as well, though I don't think either zip or gz have really good support in .NET for multipart files.
Your best bet for either is probably #ziplib.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With