#34565 [Opn->Csd]: mb_send_mail does not fetch mail.force_extra_parameters
| From: | iliaa@php.net | Date: | Wed, 21 Sep 2005 13:23:21 +0000 |
| Subject: | #34565 [Opn->Csd]: mb_send_mail does not fetch mail.force_extra_parameters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85363@lists.php.net to get a copy of this message | ||
ID: 34565
Updated by: iliaa@php.net
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Open
+Status: Closed
Bug Type: mbstring related
Operating System: AIX 5.2.0 ML5
PHP Version: 5.1.0RC1
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-09-20 16:11:05] Bjorn dot Wiberg at its dot uu dot se
Description:
------------
Note: This also happens with PHP 5.0.5.
mb_send_mail() does not fetch and/or use the
mail.force_extra_parameters from httpd.conf, despite the documentation
stating that it is a wrapper around mail() (which does fetch and use
those extra parameters):
/../ "mb_send_mail() is wrapper function of mail(). See mail() for
details." /../
Reproduce code:
---------------
<?php
$from = 'my@address.com';
$to = 'my@address.com';
$subject = 'Hi!';
$body = 'Hi,\n\nHow are you?';
mb_language("uni");
$status = mb_send_mail($to, $subject, $body);
?>
Corresponding httpd.conf entry:
php_admin_value mail.force_extra_parameters "-t -f
webmaster@mysite.com"
Expected result:
----------------
That the mail.force_extra_parameters are automatically used.
Actual result:
--------------
The mail.force_extra_parameters are not used. This may cause problems
with the sendmail program if it expects those parameters.
One has to fetch the parameters with
ini_get('mail.force_extra_parameters') and feed it to mb_send_mail()
like this:
$status = mb_send_mail($to, $subject, $body, '',
ini_get('mail.force_extra_parameters'));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34565&edit=1