|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-21 15:23 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
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'));