Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91453 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71488 invoked from network); 28 Feb 2016 17:55:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2016 17:55:40 -0000 Authentication-Results: pb1.pair.com header.from=dolf@transip.nl; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dolf@transip.nl; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain transip.nl designates 104.47.1.123 as permitted sender) X-PHP-List-Original-Sender: dolf@transip.nl X-Host-Fingerprint: 104.47.1.123 mail-ve1eur01on0123.outbound.protection.outlook.com Received: from [104.47.1.123] ([104.47.1.123:50944] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/60-64840-B9433D65 for ; Sun, 28 Feb 2016 12:55:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TransIPBV.onmicrosoft.com; s=selector1-transip-nl; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XAh3jFQqsxLv/0/rvbvBQn+m9GgNGCMyJLO1ZVcGwWo=; b=RLsZHnHm5KS08WwJIhgu9bwnotZ7CtNHXLWm/BRcvFO+K5mEGPJb+R7Fh12drBIsV1jreJSMlkJT5urHgpu2PPIEHhkSpXepFJUbuFisPIDni2d8640eE6bJjREFNjO3JRJ+TbzA9icXIlA5wCUOvaf9zfGvOR99VVnyQWV8Cbc= Received: from VI1PR02MB0782.eurprd02.prod.outlook.com (10.162.14.144) by VI1PR02MB0784.eurprd02.prod.outlook.com (10.162.14.146) with Microsoft SMTP Server (TLS) id 15.1.415.20; Sun, 28 Feb 2016 17:55:34 +0000 Received: from VI1PR02MB0782.eurprd02.prod.outlook.com ([10.162.14.144]) by VI1PR02MB0782.eurprd02.prod.outlook.com ([10.162.14.144]) with mapi id 15.01.0415.022; Sun, 28 Feb 2016 17:55:34 +0000 To: "internals@lists.php.net" Thread-Topic: RFC Proposal: Pluggable Mail Transports Thread-Index: AQHRclEiN3qnW4K8Ik+PAtgfRT/FjQ== Date: Sun, 28 Feb 2016 17:55:34 +0000 Message-ID: Accept-Language: en-US, nl-NL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.php.net; dkim=none (message not signed) header.d=none;lists.php.net; dmarc=none action=none header.from=transip.nl; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [149.210.181.20] x-microsoft-exchange-diagnostics: 1;VI1PR02MB0784;5:cIDPvcJ2UQ67ZhlFzV4fHIRYNb0D9kc7cju6ONg85d6gpfi/plOH9Duz+N5cqnf5lcmNuGJWbPgPO6TrAffbFFmBrSW1A2B1iNHlUkQphvqpu/ePb/HrkPyqwlraCnX7UzUnxLNKT2WQ9aRDu63k0A==;24:lyOnkQCYmq4v/CRHPj3KmQ05NbYDxwYA0FS43mHKDI3SQe+xBtPHvj0Qd2W4Og1d+3EKE7F7yyt0hNIWLsGtyKd4sWOS9Z7W+n9Wr7I+/uY= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB0784; x-ms-office365-filtering-correlation-id: 3e48f880-4ab9-4585-15f1-08d340685b79 x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:VI1PR02MB0784;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB0784; x-forefront-prvs: 08660C8631 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(229853001)(1220700001)(1096002)(87936001)(3660700001)(2351001)(586003)(102836003)(50986999)(3846002)(54356999)(33656002)(2501003)(5003600100002)(110136002)(5001960100002)(107886002)(3280700002)(92566002)(86362001)(2906002)(5002640100001)(19580395003)(2900100001)(74316001)(74482002)(16799955002)(11100500001)(450100001)(10400500002)(76576001)(189998001)(106116001)(77096005)(5008740100001)(40100003)(15975445007)(66066001)(122556002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR02MB0784;H:VI1PR02MB0782.eurprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: transip.nl X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2016 17:55:34.1841 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a4e75c98-a80e-4605-9b02-f5c4db1859b9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB0784 Subject: RFC Proposal: Pluggable Mail Transports From: dolf@transip.nl (Dolf Schimmel) Howdy, I'm planning to create an RFC on this shortly, but would like to gauge the = initial response first. Currently whenever an email is sent through the mail() function it is sent = by an invocation of a sendmail-compatible executable. However, there are sc= enario's in which an alternative transport than through a sendmail executab= le may be desired. For example when PHP has been locked down, preventing it= from starting any executables. It would be nice if it would be possible to= allow such an alternative e.g. through a PHP Extension. Of course there ar= e many frameworks out there that setup an smtp connection themselves, but i= n a shared hosting environment it's unfeasible to tell users they can't use= the mail() function. This approach is akin to how sessions have a storage handler. PHP by defaul= t provides the 'file' and 'user' handlers. But the memcached extension prov= ides a storage mechanism of its own which is then registered through php_se= ssion_register_module(). This would only implement an extra hook to allow for overriding the default= sendmail mail transport (introducing a new ini setting) without bringing e= xtra functionality to the php user land. Also, this hook would allow to implement other feature requests, like #2962= 9. [1] The patch I'm proposing can be found here: https://github.com/php/php-src/p= ull/1778/files Cheers, Dolf 1. https://bugs.php.net/bug.php?id=3D29629=