nagendra prasad wrote:
Hi all,

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 = "";
$subject = "Email from admin";

if ($_POST['submit'])
//get data from form

$name = $_POST['name'];
$message = $_POST['message'];
if ($name&&$message)
$namelen = 20;
$messagelen = 300;
if (strlen($name)<=$namelen && strlen($message)<=$messagelen)
  //everything is ok

  ini_set("SMTP", "");

Where's your smtp authentication? You can't just set the mail server and that's it.

Use phpmailer (as this article suggests) and you'll have a lot better chance of things working.

Postgresql & php tutorials

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to