简体   繁体   English

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

[英]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.

相关问题 使用 mail 命令发送电子邮件时指定发件人用户 - Specify the from user when sending email using the mail command 从主题中的命令行发送带有bash参数的邮件 - Sending mail with bash argument from command line in subject Linux - 使用mutt在电子邮件中格式化主题和单词 - Linux - Formating subject and words in an email using mutt 使用带有uuencode的“sendmail”发送邮件,并附带主题 - Send a mail using 'sendmail' with uuencode, and having a subject alongwith 如何使用邮件功能使用php表单脚本从我的网站电子邮件中将邮件发送到gmail? - How do I send mail to gmail from my website email using php form script using mail function? 使用 crontab 发送电子邮件时如何更改主题? - How to change the subject when sending email using crontab? 从Java运行时,Linux邮件命令可删除主题中空格后的文本 - Linux mail command removes text after space in subject when run from Java linux邮件使用错误的域发送电子邮件 - linux mail using wrong domain to send an email 在不带-a选项的情况下,在linux下使用mail命令更改电子邮件中的“发件人”字段 - Change the From field in an email with the mail command under linux without the -a option 在Linux中不带主题的邮件发送 - Mail send without subject in linux
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM