nagendra prasad wrote:
Below is the code that I have coded after replies from all of you. But
before that I want to thank all of you for your help. I have coded the email
code but still it is giving me an error. Please help me.
... and the error is what exactly?
//sending email script
$to = "exam...@gmail.com";
$subject = "Email from admin";
//get data from form
$name = $_POST['name'];
$message = $_POST['message'];
$namelen = 20;
$messagelen = 300;
if (strlen($name)<=$namelen && strlen($message)<=$messagelen)
//everything is ok
Where's your smtp authentication? You can't just set the mail server and
Use phpmailer (as this article suggests) and you'll have a lot better
chance of things working.
Postgresql & php tutorials
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php