How to send EML data in chuck to Google Apps Mail using Google API ver 2 ?

Posted by Preeti on Stack Overflow See other posts from Stack Overflow or by Preeti
Published on 2010-05-11T11:30:23Z Indexed on 2010/05/11 11:34 UTC
Read the original article Hit count: 424

Filed under:
|
|
|
|

Hi,

I am migrating EML mails to Google Apps. When i try to Migrate a EML file with two attachment 2.1 MB and 1.96 MB.

It is throwing exception:

"The request was aborted: The request was canceled."

I am using below code:

MailItemEntry[] entries = new MailItemEntry[1];
String msg = File.ReadAllText(EmlPath);
entries[0] = new MailItemEntry();
entries[0].Rfc822Msg = new Rfc822MsgElement(msg);

........

MailItemFeed feed = mailItemService.Batch(domain, UserName, entries);

I think sending data can resolve this issue.So,how can send this EML data in chunk to Google Apps?

Thanx

© Stack Overflow or respective owner

Related posts about c#

Related posts about google