目前正在发送附件的电子邮件:
output.txt | mail -s "Daily Monitoring" james@dell.com
我想添加一个消息正文.我该怎么办?
Linux Mailx:
mail [-eIinv] [-a header] [-b addr] [-c addr] [-s subj] to-addr
uuencode
(uuencode output.txt output.txt; echo "Body of text") | mailx -s 'Subject' user@domain.com
对于Solaris和AIX,您可能需要先放置echo语句:
(echo "Body of text"; uuencode output.txt output.txt) | mailx -s 'Subject' user@domain.com