Using EASYPHP I could not send mail() to anyone!!!

A

Anonymous

Guest
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.

TaMiLL.jpg
 
tamill said:
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.

TaMiLL.jpg
You are get the error where you can see all info :-x Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
can you are read this? change SMTP server in php.ini file
 
But i dont have the smtp_port option in the php.ini. what can i do

what should be the value of the smtp:????
 
Back
Top