[英]Subject Name not showing in my email using mail command
I am using mail command to send an email. 我正在使用mail命令发送电子邮件。 It works fine.
工作正常。
echo "Ignore this email" | mail -s "Test Data" DL-host-PD-WAS-TT_Emp@corp.host.com
But the only confusion I have is, in my email I didn't get any subject and it always show as (no subject)
in my email as I am also specifying subject option in the above command as -s
but it is not working I guess somehow. 但是我唯一的困惑是,在我的电子邮件中我没有收到任何主题,并且在我的电子邮件中它始终显示为
(no subject)
,因为我还在上面的命令中将主题选项指定为-s
但它不起作用以某种方式猜测。
I am running SunOS. 我正在运行SunOS。
bash-3.00$ uname -a
SunOS lvsaishdc3in0001 5.10 Generic_142901-02 i86pc i386 i86pc
And also I am not seeing To:
list in my email. 而且我在电子邮件中也没有看到“
To:
列表。 How can I make this thing works? 我该如何使这个东西起作用?
On all Solaris systems, you should not use "mail"
, you should use "mailx"
. 在所有Solaris系统上,不应使用
"mail"
,而应使用"mailx"
。 Try using mailx
. 尝试使用
mailx
。 http://www.cisl.ucar.edu/tcg/consweb/Solaris/mail.html http://www.cisl.ucar.edu/tcg/consweb/Solaris/mail.html
Modify your command like this- 像这样修改您的命令-
echo "Ignore this email" | mailx -s "Test Data" DL-host-PD-WAS-TT_Emp@corp.host.com
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.