php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #49415 Allow multiple SMTP servers to be set for the php.ini setting SMTP
Submitted: 2009-08-30 10:55 UTC Modified: 2021-10-19 12:46 UTC
From: RQuadling at GMail dot com Assigned: cmb (profile)
Status: Wont fix Package: Mail related
PHP Version: * OS: *
Private report: No CVE-ID: None
 [2009-08-30 10:55 UTC] RQuadling at GMail dot com
Description:
------------
Hi.

One of the "features" of Windows is no native SMTP server.

One of the solutions is the use getmxrr() to find the recipients mail 
server and send to one of the servers listed.

If the server fails you then have to run through the list and keep 
trying until it all goes off ok.

It'd be nice if the php.ini setting SMTP allowed for multiple servers 
and have the mail() function automatically handle them.

Ideally, being able to get the response of getmxrr() into the mail() 
function would be a nice solution.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-30 11:22 UTC] pajoye@php.net
I think it is the role of the delivery system on your system. PHP will simply use the served defined by php.ini, which should be safe.

As I can imagine the usefulness of this feature when one uses only remote smtp servers, I do not think this is a common case. Production servers use local relay not remote servers (or should :).

There are many servers who can be used as local relay, like sendmail.exe (never tested), hmailserver or mailenable.
 [2010-12-29 12:34 UTC] jani@php.net
-Package: Feature/Change Request +Package: Mail related -Operating System: n/a +Operating System: * -PHP Version: 5.3.0 +PHP Version: *
 [2021-10-19 12:46 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-10-19 12:46 UTC] cmb@php.net
> Production servers use local relay not remote servers (or should
> :).

Right.  And I may add, a *properly* *configured* local SMTP relay
servers.  And yes, for many years it is possible to use an MTA
like sendmail on Windows instead of talking to an SMTP server
directly, so I don't see the need to add support for multiple SMTP
servers.  Besides, there may be userland mailers which allow that.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC