[b]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
Want to know ur IP ANd other details.
CONFIGURING php.ini (Setting the SMTP)!!!
I want to send a mail via php mail function.
When ever i send a mail from the php mail().
The following error comes.And i could not send any mail.
Please help me in configuring the php.ini.
And what values should be set in
smtp=?
smtp_port=?
sendmail_from=?
My Actual php.ini is
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = me@localhost.com
A few guys gave advice to save the SMTP to my ISP provider i did so.
Then when i sent mail.
The following error came.
Warning: mail(): SMTP server response: 550 5.7.1 Relaying not allowed: p.tamilselvan@gmail.com in d:\easyphp\www\mail_test.php on line 3
Please Reply the changes
Thanks in advance.
TaM [/b]