can't change my email settings by calling updateimap method

192 views
Skip to first unread message

Mousa Hasan

unread,
Jun 21, 2012, 7:24:16 AM6/21/12
to google-app...@googlegroups.com
from the below linke, google providing a library for this:

https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings[^]

and im trying to immplement it like this :


using Google.GData.Apps;
using Google.GData.Apps.GoogleMailSettings;
using Google.GData.Client;
using Google.GData.Extensions;

GoogleMailSettingsService service = new GoogleMailSettingsService("www.google.com", "your-apps");

service.setUserCredentials("mye...@gmail.com", "adminPassword");
service.UpdateImap("myemail", "true");


and i got this error :
GDataRequestException was unhandled
Execution of request failed: https://apps-apis.google.com/a/feeds/emailsettings/2.0/www.google.com/myemail/imap

Claudio Cherubino

unread,
Jun 21, 2012, 11:56:40 AM6/21/12
to google-app...@googlegroups.com
Hi Mousa,

The Email Settings API can only be used with Google Apps domains and not with consumer (i.e. gmail.com) accounts.

Claudio

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/BmRBNt0KcR4J.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Mousa Hasan

unread,
Jun 24, 2012, 5:31:24 AM6/24/12
to google-app...@googlegroups.com
ok, but there is any idea to update the imap protocol by code ?
 
 
or reading email from my gmail account without enabling IMAP using c#
 
 
REgards,
 

On Thursday, June 21, 2012 4:24:16 AM UTC-7, Mousa Hasan wrote:
from the below linke, google providing a library for this:

https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings[^]

and im trying to immplement it like this :


using Google.GData.Apps;
using Google.GData.Apps.GoogleMailSettings;
using Google.GData.Client;
using Google.GData.Extensions;

GoogleMailSettingsService service = new GoogleMailSettingsService("www.google.com", "your-apps");

service.setUserCredentials("myem...@gmail.com", "adminPassword");
service.UpdateImap("myemail", "true");


and i got this error :
GDataRequestException was unhandled
Execution of request failed: https://apps-apis.google.com/a/feeds/emailsettings/2.0/www.google.com/myemail/imap

On Thursday, June 21, 2012 4:24:16 AM UTC-7, Mousa Hasan wrote:
from the below linke, google providing a library for this:

https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings[^]

and im trying to immplement it like this :


using Google.GData.Apps;
using Google.GData.Apps.GoogleMailSettings;
using Google.GData.Client;
using Google.GData.Extensions;

GoogleMailSettingsService service = new GoogleMailSettingsService("www.google.com", "your-apps");

service.setUserCredentials("myem...@gmail.com", "adminPassword");
service.UpdateImap("myemail", "true");


and i got this error :
GDataRequestException was unhandled
Execution of request failed: https://apps-apis.google.com/a/feeds/emailsettings/2.0/www.google.com/myemail/imap

On Thursday, June 21, 2012 4:24:16 AM UTC-7, Mousa Hasan wrote:
from the below linke, google providing a library for this:

https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings[^]

and im trying to immplement it like this :


using Google.GData.Apps;
using Google.GData.Apps.GoogleMailSettings;
using Google.GData.Client;
using Google.GData.Extensions;

GoogleMailSettingsService service = new GoogleMailSettingsService("www.google.com", "your-apps");

service.setUserCredentials("myem...@gmail.com", "adminPassword");
service.UpdateImap("myemail", "true");


and i got this error :
GDataRequestException was unhandled
Execution of request failed: https://apps-apis.google.com/a/feeds/emailsettings/2.0/www.google.com/myemail/imap

On Thursday, June 21, 2012 4:24:16 AM UTC-7, Mousa Hasan wrote:
from the below linke, google providing a library for this:

https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings[^]

and im trying to immplement it like this :


using Google.GData.Apps;
using Google.GData.Apps.GoogleMailSettings;
using Google.GData.Client;
using Google.GData.Extensions;

GoogleMailSettingsService service = new GoogleMailSettingsService("www.google.com", "your-apps");

service.setUserCredentials("myem...@gmail.com", "adminPassword");
service.UpdateImap("myemail", "true");


and i got this error :
GDataRequestException was unhandled
Execution of request failed: https://apps-apis.google.com/a/feeds/emailsettings/2.0/www.google.com/myemail/imap

On Thursday, June 21, 2012 4:24:16 AM UTC-7, Mousa Hasan wrote:
from the below linke, google providing a library for this:

https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings[^]

and im trying to immplement it like this :


using Google.GData.Apps;
using Google.GData.Apps.GoogleMailSettings;
using Google.GData.Client;
using Google.GData.Extensions;

GoogleMailSettingsService service = new GoogleMailSettingsService("www.google.com", "your-apps");

service.setUserCredentials("myem...@gmail.com", "adminPassword");

Jay Lee

unread,
Jul 9, 2012, 2:29:13 PM7/9/12
to google-app...@googlegroups.com
Why don't you want to turn IMAP on? Is it a security concern? If you use 3-legged OAuth instead of username/password to authenticate, an IMAP connection will succeed regardless of the user's IMAP setting. See details at:


Jay
Reply all
Reply to author
Forward
0 new messages