note 100563 added to function.mail

From: Date: Sat, 23 Oct 2010 14:32:22 +0000
Subject: note 100563 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-173398@lists.php.net to get a copy of this message
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. ---- Server IP: 212.124.37.9 Probable Submitter: 93.208.3.205 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/100563 Del: integrated -- https://master.php.net/note/delete/100563/integrated Del: useless -- https://master.php.net/note/delete/100563/useless Del: bad code -- https://master.php.net/note/delete/100563/bad+code Del: spam -- https://master.php.net/note/delete/100563/spam Del: non-english -- https://master.php.net/note/delete/100563/non-english Del: in docs -- https://master.php.net/note/delete/100563/in+docs Del: other reasons-- https://master.php.net/note/delete/100563 Reject -- https://master.php.net/note/reject/100563 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173398) next »