Req #71677 [NEW]: Pluggable Mail Transports

From: Date: Sat, 27 Feb 2016 16:59:10 +0000
Subject: Req #71677 [NEW]: Pluggable Mail Transports
Groups: php.bugs php.bugs 
Request: Send a blank email to php-bugs+get-199501@lists.php.net to get a copy of this message
From: dolf at transip dot nl Operating system: PHP version: Next Minor Version Package: Mail related Bug Type: Feature/Change Request Bug description:Pluggable Mail Transports Description: ------------ Currently whenever an email is sent through the mail() function it is sent by an invocation of a sendmail-compatible executable. However, there are scenario's in which PHP has been locked down, preventing it from starting any executables. It would be nice if it would be possible to allow alternative ways of transporting an email message than only through sendmail, e.g. through a PHP Extension. This approach is akin to how sessions have a storage handler. PHP by default provides the 'file' and 'user' handlers. But the memcached extension provides a storage mechanism of its own which is then registered through php_session_register_module(). This would only implement an extra hook to allow for overriding the default sendmail mail transport without bringing extra functionality to the php user land. Test script: --------------- I'd like to propose this patch to implement this functionality: https://github.com/php/php-src/pull/1778 -- Edit bug report at https://bugs.php.net/bug.php?id=71677&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71677&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71677&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71677&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71677&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71677&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71677&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71677&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71677&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71677&r=support Expected behavior: https://bugs.php.net/fix.php?id=71677&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71677&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71677&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71677&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71677&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71677&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71677&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71677&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71677&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71677&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71677&r=mysqlcfg

« previous php.bugs (#199501) next »