使用邮件命令,主题名称未显示在我的电子邮件中 [英] Subject Name not showing in my email using mail command

查看:210
本文介绍了使用邮件命令,主题名称未显示在我的电子邮件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用mail命令发送电子邮件.效果很好.

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

但是我唯一的困惑是,在我的电子邮件中我没有收到任何主题,并且它在我的电子邮件中始终显示为(no subject),因为我也在上述命令中将主题选项指定为-s,但是它是我想不起作用.

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.

我正在运行SunOS.

I am running SunOS.

bash-3.00$ uname -a
SunOS lvsaishdc3in0001 5.10 Generic_142901-02 i86pc i386 i86pc

而且我在电子邮件中也没有看到To:列表.我该如何使它正常工作?

And also I am not seeing To: list in my email. How can I make this thing works?

推荐答案

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

On all Solaris systems, you should not use "mail", you should use "mailx". Try using 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

这篇关于使用邮件命令,主题名称未显示在我的电子邮件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆