note 106072 deleted from ref.mail by danbrown
| From: | danbrown@php.net | Date: | Fri, 07 Oct 2011 15:16:16 +0000 |
| Subject: | note 106072 deleted from ref.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183715@lists.php.net to get a copy of this message | ||
Note Submitter: phpnet at atis dot id dot lv
----
The previous example of generating Message-ID might cause problems on some recipients, as it
contains space.
Implementation of the recommendation from http://www.jwz.org/doc/mid.html
<?php
$headers .= 'Message-ID:<'.base_convert(microtime(1), 10,
36).'.'.base_convert(mt_rand(0,mt_getrandmax()), 10,
36).'@'.$_SERVER['SERVER_NAME'].'>'.$eol;
?>