Bug #73934 [NEW]: Envelope Sender (-f) no longer working?
| From: | core905 at gmail dot com | Date: | Sat, 14 Jan 2017 12:44:11 +0000 |
| Subject: | Bug #73934 [NEW]: Envelope Sender (-f) no longer working? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-206612@lists.php.net to get a copy of this message | ||
From: core905 at gmail dot com
Operating system:
PHP version: 7.1.0
Package: Mail related
Bug Type: Bug
Bug description:Envelope Sender (-f) no longer working?
Description:
------------
I notice in PHP 7.0 when using mail() it is able to set the
envelope-from (i believe this is also known as: Return-Path?) when i
make use of the $additional_parameters field using "-f". But in PHP7.1
this no longer works.
Test script:
---------------
$to = "to@email.com";
$from = "from@email.com";
$subject = "my subject";
$message = "my body";
$headers = "From: $from" . "\r\n" . "Reply-To: $from" .
"\r\n" .
"Return-Path: $from" . "\r\n" . "X-Mailer: PHP/" . phpversion();
$params = "-f$from";
mail($to, $subject, $message, $headers, $params);
Expected result:
----------------
the envelope-from (and return-path) doesnt match the "From" field in
php7.1. It shows the servers own outgoing address not the one i gave
for the from field.
But when using the same test script in php7.0 it does match the from
field and everything is correct.
--
Edit bug report at https://bugs.php.net/bug.php?id=73934&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73934&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73934&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73934&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73934&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73934&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73934&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73934&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73934&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73934&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73934&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73934&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73934&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73934&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73934&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73934&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73934&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73934&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73934&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73934&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73934&r=mysqlcfg