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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2018 The PHP Group
All rights reserved.
Last updated: Sat Sep 22 05:01:25 2018 UTC