简体   繁体   English

如何在Solaris中使用mailx或sendmail将html表作为正文发送,将excel作为附件发送

[英]How to send html table as body and excel as attachment using mailx or sendmail in solaris

I am generating the executive summary in form of html and the complete data in csv. 我正在以html的形式生成执行摘要,并在csv中生成完整的数据。 How to send the html table as body of a mail and the csv as attachment of the same. 如何将html表作为邮件正文发送,并将csv作为附件发送。

如果您可以选择使用Mutt客户端,则可以尝试:

echo "html message" | mutt -a "/tmp/file.csv" -s "subject" -- recipient@example.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM