Page 1 of 1

mail function and Imap Function Not Work in RetHot 9.0

PostPosted: 18. July 2007 06:07
by gnabhan
Dear Friends,

I am using Rethot 9.0, Postfix-2.2.10, Courier-imap 2.0.0.
For PHP I am using XAMPP PHP 5.2.

Mail Function:
mail Function in Postfix from command promt works well (If i send mail to my id, i can receive) . but i call from php coding, it not work. The given code is

echo "send success";
But i couldn't receive mail.

IMAP Function:
1) If I use $mailbox = imap_open("{}inbox","",""); this Code, the output is:

Couldn't open stream {}inbox in /opt/lampp/htdocs/imap_test/Test.php on line 9
Array ( [0] => rsh to IMAP server timed out [1] => Certificate failure for self signed certificate: /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated IMAP SSL key/CN=localhost/ )

2) $mailbox = imap_open("{}inbox","user","user");

Couldn't open stream {}inbox in /opt/lampp/htdocs/imap_test/Test.php on line 11
Array ( [0] => rsh to IMAP server timed out [1] => [CLOSED] IMAP connection broken (server response) )
Warning: imap_check(): supplied argument is not a valid imap resource in /opt/lampp/htdocs/imap_test/Test.php on line 18

Please Help Me