php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10629 SMTP: mail() the fifth parameter
Submitted: 2001-05-03 03:59 UTC Modified: 2002-04-30 05:08 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jtjohnston at courrier dot usherb dot ca Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.5 OS: Windows
Private report: No CVE-ID: None
 [2001-05-03 03:59 UTC] jtjohnston at courrier dot usherb dot ca
It will be real handy if ...

mail() allows smtp specification in the new fifth parameter of mail()

mail("nobody@aol.com",
"the subject",
$message,
"From: webmaster@$SERVER_NAME",
"smtp.aol.com");

If you think about it, Perl's smtp.pm when it was created did just this first.
http://www.faqs.org/rfcs/rfc2821.html talks about it this type of portability
somewhere.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-03 04:04 UTC] jtjohnston at courrier dot usherb dot ca
It will be real handy if ...

mail() allows smtp specification in the new fifth parameter of mail()

mail("nobody@aol.com",
"the subject",
$message,
"From: webmaster@$SERVER_NAME",
"smtp.aol.com");

If you think about it, Perl's smtp.pm when it was first created did just this. http://www.faqs.org/rfcs/rfc2821.html even talks about this type of portability somewhere.
 [2002-04-17 16:16 UTC] bond at syd dot eastlink dot ca
for sure :) it was kick ass!
 [2002-04-29 12:24 UTC] jimw@php.net
you can use ini_set() to set the smtp server dynamically.
 [2002-04-30 01:32 UTC] jtjohnston at courrier dot usherb dot ca
I still think it should be added as a fifth parameter !
Why would I use ini_set. Not to get into an argument, but why come up with work arounds?
 [2002-04-30 05:08 UTC] derick@php.net
We don't overload parameters, period.
Using ini_set is just as easy.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 06:01:32 2024 UTC