<?php $to = "
[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "
[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";?>
i try to send mail using this code but i got error like this,anyone help plz..
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for
[email protected] in c:\inetpub\wwwroot\mail.php on line 6
Mail Sent.