/usr/sbin/sendmail -t -i
我知道 -t 参数告诉 Apache 可以通过 php 发送电子邮件。
-i 参数有什么作用?还有更多值得了解的论点吗?
我知道的另一个是 -f myemail@example.com,它是来自覆盖的发送邮件。
-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.
如果您想深入了解 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 !