2
/usr/sbin/sendmail -t -i

我知道 -t 参数告诉 Apache 可以通过 php 发送电子邮件。

-i 参数有什么作用?还有更多值得了解的论点吗?

我知道的另一个是 -f myemail@example.com,它是来自覆盖的发送邮件。

4

2 回答 2

0
   -i        This  option,  which  has  the  same  effect  as  -oi, specifies that a dot on a line by itself should not terminate an incoming,
             non-SMTP message. I can find no documentation for this option in Solaris 2.4 Sendmail, but the mailx command in Solaris 2.4  uses
             it. See also -ti.
于 2013-11-13T03:58:18.190 回答
0

如果您想深入了解 sendmail 命令,这里有一个完整的命令指南列表。

UNIX 系统管理员手册完整列表(SENDMAIL)

*至于你的问题:*

 -i          Ignore dots alone on lines by themselves in incoming mes-
                 sages.  This should be set if you are reading data from a
                 file.

简单的邮件发送样本

    **<input>**
    # /usr/lib/sendmail -t - F 'Webmaster' -f 'webmaster@email.com'

    **<output**
    From: webmaster@email.com
    To: user@someemail.com
    Subject: Feedback Form 
    Hello World !
于 2013-11-13T04:04:43.637 回答