php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #71677 Pluggable Mail Transports
Submitted: 2016-02-27 16:59 UTC Modified: 2016-02-27 23:08 UTC
From: dolf at transip dot nl Assigned:
Status: Suspended Package: Mail related
PHP Version: Next Minor Version OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
32 - 31 = ?
Subscribe to this entry?

 
 [2016-02-27 16:59 UTC] dolf at transip dot nl
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


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-27 23:08 UTC] requinix@php.net
-Status: Open +Status: Suspended
 [2016-02-27 23:08 UTC] requinix@php.net
This should probably go through the RFC process.

https://wiki.php.net/rfc/howto
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 17 10:03:37 2021 UTC