2

I am using mail command to send an email. 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.

I am running 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. How can I make this thing works?

4

1 回答 1

4

在所有 Solaris 系统上,您不应该使用"mail",而应该使用"mailx". 尝试使用mailx. http://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
于 2012-08-09T18:28:21.593 回答