Req #49415 [Opn->Wfx]: Allow multiple SMTP servers to be set for the php.ini setting SMTP

From: Date: Tue, 19 Oct 2021 12:46:05 +0000
Subject: Req #49415 [Opn->Wfx]: Allow multiple SMTP servers to be set for the php.ini setting SMTP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237282@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=49415&edit=1

 ID:                 49415
 Updated by:         cmb@php.net
 Reported by:        RQuadling at GMail dot com
 Summary:            Allow multiple SMTP servers to be set for the
                     php.ini setting SMTP
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
 Package:            Mail related
 Operating System:   *
 PHP Version:        *
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

> 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.


Previous Comments:
------------------------------------------------------------------------
[2009-08-30 11:22:23] 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.

------------------------------------------------------------------------
[2009-08-30 10:55:35] 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.




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=49415&edit=1


Thread (3 messages)

« previous php.bugs (#237282) next »