Page 1 of 1

SMTP - 501 Failure Naked LF

PostPosted: 03. October 2004 14:13
by Pangie
When I try to mail the results from a .php form I get the following error:

Warning: mail() [function.mail]: SMTP server response: 501 Failure Naked LF see http://netwinsite.com/surgemail/help/smtplf.htm in C:\apachefriends\xampp\htdocs\submit.php on line 40

I am not sure what this means, and the website it directed me to did not make any sense to me either.

I am very new to this, and do not doubt that I have something set up wrong. Any help would be appreciated. Thanks! :)

PostPosted: 03. October 2004 14:45
by Wiedmann
You have seperated the mail headers inside the mail function with "\n" and not with "\r\n".

Thanks!

PostPosted: 03. October 2004 16:10
by Pangie
Thank you so much! I feel kind of stupid now, but I'm glad it works. :)