Jump to content

IMAP (imap_open())


The Little Guy

Recommended Posts

I cannot figure this out.

 

<?php
$mbox = imap_open("{mailbox}", "username", "password", OP_HALFOPEN) or die("can't connect: " . imap_last_error());
?>

 

what do I replace mailbox with?

 

I have tried my email server: spacey.dreamhost.com

But that doesn't work, I just get this message:

 

Warning: imap_open() [function.imap-open]: Couldn't open stream {spacey.dreamhost.com} in /home/.marble/brend123/hostbox.us/createMailbox.php on line 2

can't connect: No such host as spacey.dreamhost.com

Link to comment
https://forums.phpfreaks.com/topic/98105-imap-imap_open/
Share on other sites

OK, I found out if I use mail.tzfiles.com, I will get this:

Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.tzfiles.com} in /home/.marble/ryannaddy/tzfiles.com/createMailbox.php on line 2
can't connect: Certificate failure for mail.tzfiles.com: unable to get local issuer certificate: /C=US/ST=California/L=Brea/O=Dreamhost.com/OU=Security/CN=*.mail.dreamhost.com/[email protected]

Link to comment
https://forums.phpfreaks.com/topic/98105-imap-imap_open/#findComment-501905
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.