Gmail IMAP Setting?
ch3nyong - June 3, 2008 - 11:18
| Project: | Basic webmail |
| Version: | 5.x-1.1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi guys, I thought having webmail in Drupal is way so cool!
However, I'm having problem setting up with my Gmail account :s
I'm using the following config settings:
- Server address: imap.gmail.com
- Connection port: 993
With all the below checked:
- Secure login.
- Encrypt session using SSL.
- Validate certificate.
- Encrypt session using TLS.

#1
Ops, I missed out my request...
So, anyone can tell me what's wrong with my setting?
I'm getting error as follow:
warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/secure/ssl/validate-cert/tls}INBOX in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal57\modules\basic_webmail\basic_webmail.module on line 1960.Any help is much appreciated! Please, Thanks!!
#2
Here's what works for me:
Also, if you use the SMTP Authentication Support module, and set it up to use GMail settings, your outgoing mail will be saved in the Sent folder.
#3
Here are the settings for the SMTP Authentication Support module:
#4
Thanks oadaeh for your response! The configuration seems working!
However, I wonder why does it take so long that it does not response even after 10mins... :(
Fatal error: Maximum execution time of 300 seconds exceeded in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\modules\basic_webmail\basic_webmail.module on line 2474#5
Interesting. You received an error while retrieving an error message from the IMAP server. Based on the line it's complaining about (2474), the IMAP server is not responding to a imap_last_error() function call. At the very least, it should be responding after 5 minutes. I don't know why it's doing that.
#6
Thanks oadaeh, you've been so helpful, appreciate that!
I've tried debugging and see what's wrong with my webmail setup to gmail.
It seems that imap_last_error() returns nothing when imap_fetchstructure() fails, and the loop keeps on and on. Will it because of my large number of mails that causes the (actual) timeout? I doubt.
Still debugging, while handling tons of other tasks.