Re: Improving mail() 5th parameter handling
| From: | Yasuo Ohgaki | Date: | Tue, 17 Jan 2017 09:20:06 +0000 |
| Subject: | Re: Improving mail() 5th parameter handling | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97802@lists.php.net to get a copy of this message | ||
Hi Stas,
On Tue, Jan 17, 2017 at 6:02 AM, Stanislav Malyshev <smalyshev@gmail.com>
wrote:
> > - Allow array additional_parameter and soft deprecate (document
> > deprecation) string one.
> > - Use key as "option name" and validate chars
> > - Use value as "option value" and validate some control chars then apply
> > escapeshellarg()
>
> Making array sounds good, but I'm not sure what is meant by "option
> name" here - CLI arguments don't have names?
I'm planning to use extra_parameters array like
$opts = [
'-f' => 'some@example.com', // Envelope sender
'-4' => null, // Force IPv4
'-au' => 'user@example.com', // SMTP auth user
'-ap' => 'secret', // SMTP auth password
'-am' => 'CRAM-MD5', // SMTP auth method
];
To all,
I cannot reseach all kinds of sendmail binaries. If there are exotic
sendmail binaries,
I would like to know the reference for them. Thank you.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net