|  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: 2010-12-29 12:34 UTC
From: RQuadling at GMail dot com Assigned:
Status: Open Package: Mail related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: RQuadling at GMail dot com
New email:
PHP Version: OS:


 [2009-08-30 10:55 UTC] RQuadling at GMail dot com

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-30 11:22 UTC]
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]
-Package: Feature/Change Request +Package: Mail related -Operating System: n/a +Operating System: * -PHP Version: 5.3.0 +PHP Version: *
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 02:01:23 2021 UTC