lifelineamerica
Programmer
I have an account with Mailtrust.com. They are a popular email host.
I copied my parameters from a regular email client (ie outlook) where everything works fine.
$server = '{imap.emailsrvr.com:143}';
$mailbox = 'INBOX';
$username = 'me@mydomain.com';
$password = 'mypassword';
//connect to mailbox
$mbox = imap_open($server.$mailbox, $username, $password);
if ($mbox === false) {
die ('could not connect to mailbox');
}
...and of course I'm always getting the die message.
I know it must work somewhat because if I change the port to something else, it takes forever for the script to come back and tell me that it can't connect. However if the parameters are correct as above, the death message I get (could not connect to mailbox) is instantaneous. I also tried with and without the $mailbox parameter with no success.
I copied my parameters from a regular email client (ie outlook) where everything works fine.
$server = '{imap.emailsrvr.com:143}';
$mailbox = 'INBOX';
$username = 'me@mydomain.com';
$password = 'mypassword';
//connect to mailbox
$mbox = imap_open($server.$mailbox, $username, $password);
if ($mbox === false) {
die ('could not connect to mailbox');
}
...and of course I'm always getting the die message.
I know it must work somewhat because if I change the port to something else, it takes forever for the script to come back and tell me that it can't connect. However if the parameters are correct as above, the death message I get (could not connect to mailbox) is instantaneous. I also tried with and without the $mailbox parameter with no success.