简体   繁体   English

我如何通过Unix Shellscripting发送带有附件的html邮件

[英]How can i send a html mail with an attachment through Unix Shellscripting

我完全不熟悉unix shellscripting。我必须通过unix shell scripting发送带有gzip文件作为附件的html邮件,而无需使用uuencode或mailx。我被困住了,请帮帮我。

You do have to use uuencode if there will be an attachment. 如果有附件,则必须使用uuencode。 The trick is to write out a plain ascii file that is formatted in a particular way. 诀窍是写出以特定方式格式化的纯ascii文件。 There is an example in this post. 这篇文章中有一个例子 As long as your script writes out a file in that format, with the attachment uuencoded between the $MAILPART sections, it will be processed by sendmail and rendered nicely in the recipient's email program. 只要您的脚本以这种格式写出文件,并在$ MAILPART部分之间使用uuencode编码附件,它将由sendmail处理并很好地呈现在收件人的电子邮件程序中。

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

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