View Full Version : Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1)

03-24-2010, 01:19 PM

I have mail function but when I send it it appears to me as warning message like this

Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1) in D:\Hosting\3181178\html\goldy\Bay\includes\functions.php on line 51

My php coding is like this

$subject = "Notice about reservation cancel";
$body = "<html>\n";
$body .= "<body style=\"font-family:Verdana, Verdana, Geneva, sans-serif; font-size:12px; color:#666666;\">\n";
$body .= "Notice about reservation cancel on Bay Airporter Express Inc";
$body .= "Your reservation is cancelled
Reservation Number : ".$res_num."";
$body .= "</body>\n";
$body .= "</html>\n";

$headers = "From: Admin<admin@baei.com>\r\n";
$headers .= "Reply-To: webmaster@baei.com\r\n";
$headers .= "Return-Path: webmaster@baei.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

mail($email, $subject, $body, $headers);

If any help would be great!


03-24-2010, 01:40 PM
judging from the error message, there’s something wrong with the SMTP setup. (503 = Service Unavailable)