mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in E:\A

Hi i am getting following error when i access shopping cart application oscommerce

Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in E:\Apache Group\Apache2\htdocs\oscommerce\catalog\includes\c lasses\email.php on line 522

Warning: Cannot modify header information - headers already sent by (output started at E:\Apache Group\Apache2\htdocs\oscommerce\catalog\includes\c lasses\email.php:522) in E:\Apache Group\Apache2\htdocs\oscommerce\catalog\includes\f unctions\general.php on line 33


please tell me how to solve this


I found that 451 error comes because of following reason

451 - The command has been aborted due to a server error. Not your fault. Maybe let the admin know.

from the following link i found this message

http://email.about.com/cs/standards/...ror_code_2.htm

Please help me how to overcome this through our local smtp server what changes should i have to make

Thanks in advace
 
Re: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in

Your shopping cart is sending mail with "bare LFs" which Qmail doesn't support. While Qmail is following the official mail standards, most mailers ignore this problem and send the mail anyway. But, if you're hosted here you're stuck with dealing with it.

In mail message headers and content, new lines are supposed to be denoted by both a carriage return (CR) and a line feed (LF). Your cart is using just an LF. If it's php based, you'll find lines being terminated with "\n" when they should be terminated with "\r\n".

You have two options: 1) bug the developers to replace all the "\n" with "\r\n" in all their mailer code, or 2) do it yourself. My guess is that you're not going to get a whole lotta response trying option 1. So, you're going to have to look at the code yourself. Back up the files first, then do a search and replace to change them all.

Good luck!
Tim
 
Back
Top