Jump to content

SMTP server response: 550 Authentication is required


mentalstate

Recommended Posts

Hi- I am new to php, trying to make a simple form that emails when submitted. It works fine on my own server, but when I try it on my work server I get: Warning: mail() [function.mail]:

SMTP server response: 550 Authentication is required for relay in C:\inetpub\wwwroot\OMC\estimate3.php on line 159

here are the headers:

 

$headers = "From: [email protected]\n";

$headers .= "X-Mailer: PHP4\n";

$headers .= "X-Priority: 3\n";

$headers .= "MIME-Version: 1.0\n";

$headers .= "Content-Type: multipart/alternative; boundary=\"==MIME_BOUNDRY_alt_main_message\"\n\n";

 

and the mail() function

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

 

let me know if you need more code and ill happily supply it.

 

thanks!

It means you need to supply valid credentials to the mail server. PHP's mail() function doesn't support SMTP authentication, so you'll most likely need to use a class such as phpMailer, or PEAR::Mail. Talk to the person who administers the mail server regarding what's required.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.