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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dolf at transip dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

Pull requests:

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 07 17:01:31 2024 UTC