Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1)

    Hi,

    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
    PHP Code:
            $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!

    Cheers!!!

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,474
    Thanks
    13
    Thanked 361 Times in 357 Posts
    judging from the error message, there’s something wrong with the SMTP setup. (503 = Service Unavailable)
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •