Bug #4363: mail() Subject header not functioning correctly
| From: | sgibson at digitalimpact dot com | Date: | Tue, 09 May 2000 22:13:06 +0000 |
| Subject: | Bug #4363: mail() Subject header not functioning correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18551@lists.php.net to get a copy of this message | ||
From: sgibson@digitalimpact.com
Operating system: Linux (RedHat 6.2)
PHP version: 3.0.14
PHP Bug Type: Misbehaving function
Bug description: mail() Subject header not functioning correctly
I was using the mail() function to send mail. It seems to
be misbehaving on my system. System information:
Apache 1.3.12
PHP 3.0.14
RedHat Linux 6.2
Sendmail 8.10.0
php3.ini: sendmail_path = /usr/sbin/sendmail -t
When I call the mail() function, like this:
mail( $to, $subject, $message);
The subject is not correctly set. Instead, the contents
of $message is used for the subject. It seems to be about
64 to 68 (or so) bytes of $message are used in the subject,
then the remainder of $message is in the body.
Looking at the message in the mailbox, it appears that
the "Subject:" is set to null, then a second "Subject:"
line is created, with the above mentioned actions.
When I test this on:
UnixWare 7.0.1
Apache 1.3.6
PHP 3.0.6
Sendmail 8.9.1
it seems to function correctly.
When using additional headers (after the message), they
get appended to the body of the email, and not set in
the message header.
Very very odd behavior.
I didn't see any other bug reports regarding this, or any
feature fixes within 3.0.15 or 3.0.16. It may be an
environment thing. I.E. Sendmail 8.10.0 and PHP 3.0.14??
v/r
Shane