Thread: sending mail
View Single Post
  #1 (permalink)  
Old December 29th, 2006, 01:46 AM
mgnishan mgnishan is offline
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default sending mail

<?php $to = "mgnishanthan@missioncode.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "nisanth_2001@yahoo.com";
$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 mgnishanthan@missioncode.com in c:\inetpub\wwwroot\mail.php on line 6
Mail Sent.


Reply With Quote