Jump to content

PHP and IMAP


Recommended Posts

Lets get a few terms down first. Online Server is the webserver a client is using. I have no access to change anything, I can only contact the admins. Localhost is my local server, I am the admin.

 

Now, how exactly do I know imap is running? Look here (this is the online server):  http://usedad.com/scrapinc/imap.php

 

(here is the code)

<?php
$conn   = imap_open("{imap.gmail.com:993/imap/ssl}INBOX", "[email protected]", "password", OP_DEBUG) or die("IMAP ERROR:<br />".imap_last_error());  // this is line 11

$headers = imap_headers($conn) or die("Couldn't get emails");   // line 13
?>

There is an error when trying to connect to gmail through imap. This doesn't happen on my localhost, it worked perfectly just like it should.

 

Here is the comparison of the 2 servers' phpinfo files.

 

http://usedad.com/scrapinc/phpinfo.jpg

 

Any tips or suggestions will be helpful. If you don't know, please help keep this topic bumped because it is pretty urgent.

Link to comment
https://forums.phpfreaks.com/topic/117619-php-and-imap/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.