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: info@combatstocks.com\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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.