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: 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: RQuadling at GMail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: *
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 13:01:24 2019 UTC