note 77385 deleted from function.error-log by nlopess
| From: | nlopess@php.net | Date: | Sat, 01 Sep 2007 16:32:41 +0000 |
| Subject: | note 77385 deleted from function.error-log by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130058@lists.php.net to get a copy of this message | ||
Note Submitter: AnonymousDoesNotForgive
----
Most of the mail headers can be overridden in an error_log call, but there's no apparent way to
override the subject line. Adding a 'Subject' header does not replace the existing one,
it simply adds a second subject header...
<?
error_log(
'blah blah blah',
1,
'user@example.com',
'From: root@example.com\nMime-Version: 1.0\nContent-Type: text/html; charset=utf8\nSubject: My
message...\n'
)
/*
From: root@example.com
To: user@example.com
Mime-Version: 1.0
Content-Type: text/html; charset=utf8
Subject: My message...
Subject: PHP error_log message
blah blah blah
*/
?>
As of yet, I've not found a way around this. Has anyone else?