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:

https://developers.google.com/google-apps/gmail/oauth_overview

Jay

On Sunday, June 24, 2012 5:31:24 AM UTC-4, Mousa Hasan wrote:
>
> 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
>> *<https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings>
>> [*^*<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("[email protected]", "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
>> *<https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings>
>> [*^*<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("[email protected]", "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
>> *<https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings>
>> [*^*<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("[email protected]", "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
>> *<https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings>
>> [*^*<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("[email protected]", "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
>> *<https://developers.google.com/google-apps/email-settings/#retrieving_google_mail_imap_settings>
>> [*^*<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("[email protected]", "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
>
>

-- 
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/-/wZRY5qFhVLYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to