note 73535 added to function.mail
| From: | bigtree at 29a dot nl | Date: | Wed, 28 Feb 2007 12:46:33 +0000 |
| Subject: | note 73535 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123946@lists.php.net to get a copy of this message | ||
Since lines in $additional_headers must be separated by \n on Unix and \r\n on Windows, it might be
useful to use the PHP_EOL constant which contains the correct value on either platform.
Note that this variable was introduced in PHP 5.0.2 so to write portable code that also works in PHP
versions before that, use the following code to make sure it exists:
<?php
if (!defined('PHP_EOL')) define ('PHP_EOL', strtoupper(substr(PHP_OS,0,3) ==
'WIN') ? "\r\n" : "\n");
?>
----
Server IP: 83.137.20.120
Probable Submitter: 194.109.75.10
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/73535
Del: integrated -- https://master.php.net/note/delete/73535/integrated
Del: useless -- https://master.php.net/note/delete/73535/useless
Del: bad code -- https://master.php.net/note/delete/73535/bad+code
Del: spam -- https://master.php.net/note/delete/73535/spam
Del: non-english -- https://master.php.net/note/delete/73535/non-english
Del: in docs -- https://master.php.net/note/delete/73535/in+docs
Del: other reasons-- https://master.php.net/note/delete/73535
Reject -- https://master.php.net/note/reject/73535
Search -- https://master.php.net/manage/user-notes.php