littledbc Posted March 6, 2006 Share Posted March 6, 2006 I get this error when trying to use the mail() function:mail() [function.mail]: SMTP server response: 550 Relaying deniedDoes anyone know how to authenticate to the SMTP server so I don't get this error?Thanks! Link to comment https://forums.phpfreaks.com/topic/4230-mail-authentication-problem/ Share on other sites More sharing options...
apulmca2k4 Posted October 4, 2008 Share Posted October 4, 2008 Hi,I can do it for you .Apul[email protected] Link to comment https://forums.phpfreaks.com/topic/4230-mail-authentication-problem/#findComment-656923 Share on other sites More sharing options...
redarrow Posted October 4, 2008 Share Posted October 4, 2008 try this mate[code]<?phpini_set("SMTP","mail.domain.com");ini_set("sendmail_from","[email protected]"); ?>[/code] Link to comment https://forums.phpfreaks.com/topic/4230-mail-authentication-problem/#findComment-656927 Share on other sites More sharing options...
PFMaBiSmAd Posted October 4, 2008 Share Posted October 4, 2008 If possible, make either the To: or the From: address be hosted on the mail server to satisfy relaying restrictions. If you are putting a user entered email address into the From: header, put it instead into the Reply-To: header and put a valid email address hosted on the mail server into the From: header.The php mail() function does not support SMTP authentication. Use the phpmailer class instead. Link to comment https://forums.phpfreaks.com/topic/4230-mail-authentication-problem/#findComment-657044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.