tags:

views:

460

answers:

2

Hi I keep getting this error, and I changed the sendmail in the php.ini to: sendmail_from = [email protected]

  $to='[email protected]';//assigns the email address to the reciever part of the script
$subject='User Comments OHBS.com';
$header='test';
$name=($_POST['Name']);
$email=($_POST['Email']);
$Question=($_POST['MessageTitle']);
// the mail, the .= function is used to add more elements to the message array
$message="Name: $name\n\n";
$message.="Email: $email\n\n";
$message.="Comment or Question: $Question";
//Wordwrap to limit each line to 100 characters
$message=wordwrap($message, 100);
//Script to send the mail
$mailSent=mail($to,$header,$subject,$message);

Please help!

A: 

Make sure you have stmp server configured in your xampp and running.
Try enclosing the sendmail_from value in quotes

sendmail_from = "[email protected]"

michal kralik
A: 

Tried that, its still not working :(

Nwakego