Hi,
I am new to php. I heard about the mail function in php.
I thoght that i could send mail with out logining in to my account.
i thoght it was great.but when i tried to send mail. that is i woke from the dream.
My friend said me to use Easyphp. So i ahve downloaded it and insatlled it.

CODE:
<?php
echo "<html><body>";
mail ("p.tamilselvan@gmail.com", "Subject", "Hello!");
echo "Sending mail...";
echo "</body></html>";
?>

ERROR:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\easyphp\www\mail_test.php on line 3

HELP:
Please help me how to configure and send e-mail!!!
Thanks in advance!!!

Want to know ur IP ANd other details.

    The message says it all. PHP expects that an MTA (Mail Transfer Agent: examples, Sendmail, PostFix, QMail, etc) is running on port 25 of the local machine. It couldn't find one.

    As the message indicates, you can change this behavior by specifying a mail server in your php.ini file. Have a look at the manual's [man]mail[/man] section for more details.

    Good luck!

      Write a Reply...