mentalstate Posted March 23, 2011 Share Posted March 23, 2011 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! Link to comment https://forums.phpfreaks.com/topic/231533-smtp-server-response-550-authentication-is-required/ Share on other sites More sharing options...
Pikachu2000 Posted March 23, 2011 Share Posted March 23, 2011 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 https://forums.phpfreaks.com/topic/231533-smtp-server-response-550-authentication-is-required/#findComment-1191520 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.