How to send mail using a large application using System.Net.Mail in Google Apps?

I am trying to send mail with a large upto application (1MB, 2MB). But sending mail is not performed. (Submission to Google Apps):

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 split attachments into several parts?

The exception that I get when porting this EML to Google applications is: {"Request was aborted: request was canceled." }

Question about Google Forum

+5
source share
4 answers

One solution could be to use multipart zip (or another compression format that supports a similar concept), and send each file in a separate email.

, GZip , , zip gz .NET .

, , # ziplib.

+2

, . 2MB WMV ~ 500kb , . WMV - "" .

, WinRAR, . , .

- , . HTTP FTP-, , , YouSendIt .

0

, , 3 . , , smtp ?

0

, , ?

, - -, , , .

Without looking at the exception text and stack trace, these vague questions can be worthless.

Not trying to be rude or anything, but the more information you ask, the easier it is to answer.

0
source

All Articles