Hi,
I'm try to send mail from my php script. its working fine with in the domain / mail server. if i send mail to others like gmail, yahoo..... its showing the following error.
SMTP server response: 553 sorry, you have not authenticated for relay and is not a local address.(#5.7.1).
when using outlook no such problems. Its working fine.(send mail from myid to any email like gmail,yahoo..)
SMTP setup
[mail function]
; For Win32 only.
SMTP = mail.mydomainname.com
smtp_port = 25
; For Win32 only.
sendmail_from =myemailaddress.
SMTPAUTH = true
Php Code:
$to="to@gmail.com";
$subject="Test Mail";
$message="This is a test Message using Gmail";
$send_mail=mail($to,$subject,$message);
if($send_mail)
{
echo "Mail Send";
}
else
{
echo "Mail Send Fail to $to";
}
?>
Is this setting Correct or I've to Modify. If Yes pls help to modify
Regards