mail function and Imap Function Not Work in RetHot 9.0

Problems with the Linux version of XAMPP, questions, comments, and anything related.

mail function and Imap Function Not Work in RetHot 9.0

Postby gnabhan » 18. July 2007 06:07

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

<?php
mail("gnabhan@gmail.com","hai","welcome");
echo "send success";
?>
But i couldn't receive mail.

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

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

2) $mailbox = imap_open("{192.168.1.8/imap/notls}inbox","user","user");

Couldn't open stream {192.168.1.8/imap/notls}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
[/b]
gnabhan
 
Posts: 7
Joined: 11. July 2007 13:00

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 10 guests