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

the mail() function

Moderators: egami, macek, gesf

Post Reply
tamill
New php-forum User
New php-forum User
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

Tue Aug 23, 2005 6:08 pm

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.

Image

User avatar
WiZARD
Moderator
Moderator
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Wed Aug 24, 2005 4:10 am

tamill wrote: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.

Image

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
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

tamill
New php-forum User
New php-forum User
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

Wed Aug 24, 2005 5:04 am

But i dont have the smtp_port option in the php.ini. what can i do

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest