linux – 在bash脚本中,比uuencode编码电子邮件附件有哪些更好的选择?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux – 在bash脚本中,比uuencode编码电子邮件附件有哪些更好的选择?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1009字,纯文字阅读大概需要2分钟。
内容图文
我正在引用my original post,其中我询问有关$2 $3等参数放置的问题,最后是${@:2}.有人提到有更好的方法来编码电子邮件附件.
注意,我使用uname -or来找出2.6.32-400.26.3.el5uek GNU / Linux,如果这有助于回复.
我在bash脚本中使用该命令将文件附加到电子邮件中,并将其与其他几个脚本一起使用.但是,我们的一些机器甚至不支持uuencode,那么将文件附加到电子邮件比uuencode更好的选择是什么?
解决方法:
我更喜欢使用mpack将附件作为MIME发送
如:
mpack -s "message" file email@example.com
Name
mpack – pack a file in MIME format Synopsis
mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c
content-type ] file address … mpack [ -s subject ] [ -d
descriptionfile ] [ -m maxsize ] [ -c content-type ] -o outputfile
file mpack [ -s subject ] [ -d descriptionfile ] [ -m maxsize ] [ -c
content-type ] -n newsgroups file DescriptionThe mpack program encodes the the named file in one or more MIME
messages. The resulting messages are mailed to one or more recipients,
written to a named file or set of files, or posted to a set of
newsgroups.
内容总结
以上是互联网集市为您收集整理的linux – 在bash脚本中,比uuencode编码电子邮件附件有哪些更好的选择?全部内容,希望文章能够帮你解决linux – 在bash脚本中,比uuencode编码电子邮件附件有哪些更好的选择?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。