note 100563 deleted from function.mail by aharvey

From: Date: Mon, 05 Nov 2012 05:42:29 +0000
Subject: note 100563 deleted from function.mail by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191671@lists.php.net to get a copy of this message
Note Submitter: tschmieder at online dot de ---- it seams to be better, to terminate additional headers neither with "\n" nor with "\r\n", but to terminate them with the php constant PHP_EOL. The benefit is: this works fine as well on a LINUX based Host as on a Windows based host. As final result there must be produced a mail file fulfilling the RFC2822 ff. On a Linux system therfore in headers linebreaks like "\n" are required due to the sendmail script transforming them to "\r\n" (means CRLF). On a Windows system the mail function speaks directly to the SMTP Server (port 25) and therefore in headers linebreaks like "\r\n" (means CRLF) are required at once. Nobody else would care for transformation. If you use the constant PHP_EOL instead of own character sequences, the php installation will take care for the required line ending as well on Linux as on Windows installations.

« previous php.notes (#191671) next »