Re: Improving mail() 5th parameter handling

From: Date: Tue, 17 Jan 2017 10:23:14 +0000
Subject: Re: Improving mail() 5th parameter handling
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-97806@lists.php.net to get a copy of this message
On Tue, Jan 17, 2017 at 6:20 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > 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. > The command line would look something like $ sendmail -F 'Some User' -f 'some@example.com' -4 -au 'user@example.com' -ap 'secret' -am 'CRAM-MD5' to@example.com < msg.txt // I added -F (Fullname) option to illustrate we need ' '(space) for option values. Option values are escaped by php_escape_shell_arg(). Thank you for feedback. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#97806) next »