简体   繁体   中英

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. The trick is to write out a plain ascii file that is formatted in a particular way. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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