I tried my php.ini file with host id address, But i mot able to send mail using my code. Please help me
I have mentioned my codes below here
Code: Select all
; For Win32 only.
SMTP = 172.68.1.10
smtp_port = 25
; For Win32 only.
sendmail_from = example@loacal.com
Code: Select all
<?php
$mail=mail("@example.com", "Testing", "Good Morning testing mail", "From:@yahoo.com");
If($mail)
{
echo "Mail was send";
}
else
{
echo "Error in sending";
}
?>