Need help in Mail Functionality
Posted: Fri Jan 22, 2010 12:35 am
Hi,
I am very new to php development. I tried one simple mail program in php
<?php
$to = "ysarunn@gmail.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
But i am getting error like "SMTP Server Response:454.5.7.3 Client does not have permission to submit to mail server in C:/Wamp/www/mail/mail.php on line 7"
I am trying in my home laptop only.
Pls help me how to work with this mail functionality.
I am very new to php development. I tried one simple mail program in php
<?php
$to = "ysarunn@gmail.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
But i am getting error like "SMTP Server Response:454.5.7.3 Client does not have permission to submit to mail server in C:/Wamp/www/mail/mail.php on line 7"
I am trying in my home laptop only.
Pls help me how to work with this mail functionality.