#959042 libapache2-mod-php7.3: Setting mail.force_extra_parameters through .htaccess with php_value doesn't work

#959042#5
Date:
2020-04-28 17:09:36 UTC
From:
To:
Dear Maintainer,

When creating an .htaccess file with contents:

	php_value mail.force_extra_parameters "-fname@xxxxxx.com"

It has no effect.

It can be confirmed by creating a php file in the same directory running phpinfo(), to see that the local value has not been set. Though setting other values with php_value in that same .htaccess file works without any issue.

However setting mail.force_extra_parameters with php_admin_value instead inside the vhost works:

	php_admin_value mail.force_extra_parameters "-fname@xxxxxx.com"

I am trying to set this value in the .htaccess file at a directory level.

On the official PHP documentation, mail.force_extra_parameters should be PHP_INI_PERDIR, which means should be supported by .htaccess.

I also looked for special behavior that would restrict that option but haven't found any.

Hope it is clear. Please let me know if you need any more information.

Wadih

#959042#10
Date:
2026-08-11 16:21:11 UTC
From:
To:
Dear Team,

Hope you are doing well.

Can you please share price, lead time and requirements for the following
product models based on the attached document.

We would appreciate receiving your quotation at your earliest
convenience.

Best regards,

Amelia Thompson
Technical Account Manager

IMCD Canada Limited 99 Summerlea Road * Brampton, ON L6T 4V2 * Canada

P +1-365-866-1905

E Ameliathompson@imcdca.com   W www.imcdgroup.com [1]

Links:
------
[1] http://www.imcdgroup.com/