Re: Re: PHP and Send Mail

From: Date: Thu, 09 Apr 2009 16:29:02 +0000
Subject: Re: Re: PHP and Send Mail
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-291304@lists.php.net to get a copy of this message
Bob McConnell wrote: *snip*
Just be aware that it does have a few bugs you may need to work around or patch. The SourceForge tracker is at <http://sourceforge.net/tracker/?group_id=26031&atid=385707>. I submitted two reports last year against 1.73 which the tracker says were summarily closed with no comment and apparently no action. The first one is listed as fixed in the change logs for 2.0.3 and 2.3, but that was not recorded in the tracker. 1. Incorrect line ending character. RFC 2821 and 2822 require CR/LF line endings. PHPMailer only puts in the LF. Just because most current clients can handle the single character is no excuse for doing it wrong. 2. Invalid use of Return-path for Sender. When you request a Sender header, the email is written with Return-path instead. According to those RFCs, the latter is reserved for use by transport agents and may be rewritten or replaced anywhere in the chain. It should insert a Sender line instead. Bob McConnell
I wonder if that could be fixed by extending the class. I'll have to look at it, I like standards compliance, the web would be a better place if standards were always strictly enforced.

« previous php.general (#291304) next »