Hello,

I am getting this error message on Google chrome but not on fire fox.

Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in \\address.......

$mail = mail($to,$subject,$body,$headers);
if($mail)
{ 	
session_destroy();
header("location: sendemail.php?verify=ok");
}

These are the variables:

$buyeremail = "email@email.com";
$headers = "From: $buyeremail" . "\r\n" . "Replay-To: $buyeremail". "\r\n" . "X-Mailer: PHP/" . phpversion();
$name = $_POST['buyername'];
$to = $_POST['email'];
$subject = $_POST['itemname'];
$body = "Hey there";

Thank you in advance

Here is a link to someone else who had the same error. In that case the "To" parameter didn't have a value and yours could be the same.

thank you the issue somehow resolved itself....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.