Results 1 to 2 of 2

Thread: mail() [function.mail]: SMTP server response: 503 RCPT first

  1. #1
    Join Date
    Mar 2010

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


    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 : "
    $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";
    If any help would be great!


  2. #2
    Join Date
    Nov 2008
    It may be that your SMTP host requires authentication. Make sure you have provided it in php.ini (or adjust the mail server accordingly).
    The first rule of Tautology Club is the first rule of Tautology Club.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles