Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

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

the mail() function

Moderators: macek, egami, gesf

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

Postby tamill » 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
tamill
New php-forum User
New php-forum User
 
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

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

Postby WiZARD » 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
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby tamill » 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:????
tamill
New php-forum User
New php-forum User
 
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm


Return to PHP coding => Mail

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.