I am trying to access an email box in my code using the PHP command:
imap_open('{' . $cfg['host'].':' . $cfg['port_protocol'].'}' . $cfg['mailbox'],$cfg['account'],$cfg['password']);
The variables in the $cfg array are defined. The mailbox exists, and the account and password are correct.
$cfg['host'] is defined as 'localhost'
$cfg['port_protocol'] is defined as '110/pop3'
So the above command should resolve to:
imap_open("{localhost:110/pop3}INBOX","account@mysite.com","password");
When I execute the .php file, I get the error:
Could not open mailbox : Connection failed to localhost,110: Connection refused
The only things I can see going wrong here are the port protocol (110/pop3) and the host (localhost).
Any suggestions?
Thank you,
Mel