主题名称未使用mail命令显示在我的电子邮件中

时间:2012-08-09 18:16:02

标签: linux shell unix solaris sunos

我正在使用mail命令发送电子邮件。它工作正常。

echo "Ignore this email" | mail -s "Test Data" DL-host-PD-WAS-TT_Emp@corp.host.com

但我唯一的困惑是,在我的电子邮件中,我没有得到任何主题,并且它总是在我的电子邮件中显示为(no subject),因为我还在上面的命令中将主题选项指定为{{1}但是我觉得它不起作用。

我正在运行SunOS。

-s

而且我的电子邮件中也没有看到bash-3.00$ uname -a SunOS lvsaishdc3in0001 5.10 Generic_142901-02 i86pc i386 i86pc 列表。我怎样才能使这件事有效?

1 个答案:

答案 0 :(得分:4)

在所有Solaris系统上,不应使用"mail",应使用"mailx"。 尝试使用mailxhttp://www.cisl.ucar.edu/tcg/consweb/Solaris/mail.html

像这样修改你的命令 -

echo "Ignore this email" | mailx -s "Test Data" DL-host-PD-WAS-TT_Emp@corp.host.com