我使用邮件在Linux中将文件作为正文编码
我正在尝试通过Linux发送多个文件,下面的命令在AIX上工作正常,但在Linux上它在电子邮件主体中发送编码的内容。请帮助了解如何将文件发送为附件并解码。我在这里是个菜鸟
(猫的身体_“ $ timestamp”;/usr/bin/uuencode abc _“ $ timestamp” abc_123.xls;/usr/usr/bin/uuencode def _“ $ timestamp” $ timestamp; /uuencode xyz _“ $ timestam p” xyz.xls;/usr/bin/uuencode PQR _“ $ timestamp” mail -s“ fort to list:$ {list}” -c ]
I am trying to send multiple files via Linux and below command worked fine on AIX but on Linux its sending encoded content in email body. Please help to understand how to send the files as attachment and decoded. I am a noob here
( cat Body_"$TIMESTAMP" ; /usr/bin/uuencode abc_"$TIMESTAMP" abc_123.xls ; /usr/bin/uuencode def_"$TIMESTAMP" def_123.xls ; /usr/bin/uuencode xyz_"$TIMESTAM P" xyz.xls ; /usr/bin/uuencode pqr_"$TIMESTAMP" pqr_456.xls ; /usr/bin/uuencode mno_"$TIMESTAMP" mno.xls ) | mail -s"From-To-List : ${list}" -c [email protected] [email protected]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论