Hi, folks - I have a script which will (I've seen it doing it!) pipe email messages to a script. This suddenly stopped working CPanel/RedLinux - and I need to find a fix .... this is the code in question -
$query = "SELECT * FROM mail_accounts";
$mail_accounts = mysql_query($query);
while ($mails = mysql_fetch_array($mail_accounts))
{
$receive_server = $mail_servers[$mails["ms_id"]];
$r_login = $mails["login"];
$r_password = $mails["passwd"];
if ($mail_servers_type[$mails["ms_id"]] == "p") $receive_server .= "/pop3:110";
else $receive_server .= ":143";
if ($mbox = imap_open("{$receive_server}INBOX", $r_login, $r_password))
.... that's part of a file called receive.php - the error message I'm getting is
Warning: imap_open(): Couldn't open stream {mail.XXXX.com/pop3:110}INBOX in /home/xxxx/public_html/helpdesk/receive.php on line 161
I'm afraid I'm a total newbie at this and I can't figure out why the script stopped working on the cPanel host and yet it's still working on my bargain-basement directadmin hosting ....
I'm open to suggestions/barters/paid help - just need it fixed!
Thanks