Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80233 invoked from network); 17 Jan 2017 10:24:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2017 10:24:06 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:35402] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/62-00729-5C0FD785 for ; Tue, 17 Jan 2017 05:24:05 -0500 Received: (qmail 9892 invoked by uid 89); 17 Jan 2017 10:24:01 -0000 Received: from unknown (HELO mail-wm0-f41.google.com) (yohgaki@ohgaki.net@74.125.82.41) by 0 with ESMTPA; 17 Jan 2017 10:24:01 -0000 Received: by mail-wm0-f41.google.com with SMTP id r126so194455558wmr.0 for ; Tue, 17 Jan 2017 02:24:01 -0800 (PST) X-Gm-Message-State: AIkVDXK3oombdul+O9zoeLshQ3yQsY/8SqgKrh9fmTqbfetPg/wyhKSYmgy9L1a4llnRVavEg0jXirSZ9ErbDw== X-Received: by 10.28.22.146 with SMTP id 140mr13919788wmw.22.1484648634655; Tue, 17 Jan 2017 02:23:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Tue, 17 Jan 2017 02:23:14 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Jan 2017 19:23:14 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Stanislav Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1145bd0c7c2fd8054647b291 Subject: Re: [PHP-DEV] Improving mail() 5th parameter handling From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1145bd0c7c2fd8054647b291 Content-Type: text/plain; charset=UTF-8 On Tue, Jan 17, 2017 at 6:20 PM, Yasuo Ohgaki 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 --001a1145bd0c7c2fd8054647b291--