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

I am migrating EML emails to Google Apps. When I try to transfer an EML file with two attachments 2.1 MB and 1.96 MB.

This is an exception to the exception:

"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 that sending data can fix this problem. So how do you send this EML data to a chunk in Google Apps?

Thanx

+2


a source to share


1 answer


Just a thought, instead of using the Google API, if you are using IMAP instead for the same purpose, will this help?

I suggest this because I have had great success in archiving my official Microsoft Exchange mailbox (200MB) to my personal Google Apps mailbox (under the shortcut) using Outlook connected via IMAP.



I think it's possible that using the API has some kind of timeout issue on the google server side or in your C # code (have you checked your socket timeout settings?)

Hooray!

+1


a source







All Articles