I couldn't get this module to connect to my server for the longest time, as I was getting the dreaded: warning: imap_open() [function.imap-open]: Couldn't open stream {localhost:143}INBOX in /home/jaypncom/public_html/jaypan.com/sites/all/modules/mail_api/contrib/imapwu_api/imapwu_api.module on line 73. message.

I got in and hacked around with the code a little, and I discovered that the problem is that $password is empty, and $username is incorrect. However, I cannot figure out where these values are being set, or how to change them.

As a note, I'm using this module with the webmail module. I don't know if that helps or not.

Thank you.

Comments

scripthead’s picture

The username/password are set on per-user basis via the Webmail Plus application. The username is the Drupal user name and the password can be either set manually for that user or you can select "Internal" authentication in admin/settings/webmail_plus and it will use the Drupal user password (captured at login).

jaypan’s picture

Thanks mate! I've been having troubles with this for a while. That explains it perfectly.

edit: And I got it working. Thanks mate, much appreciated.