本文介绍了如何通过带有附件的mailx发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要通过mailx或mail发送文件,但是我想将其作为附件发送,而不是在正文消息中发送.有什么办法吗?最终在solaris中是否可以使用其他工具(例如程序)?谢谢
I need to sent a file via mailx or mail, but I wat to sent it as attachment not in the body message. Is there any way how to do it ?Eventually is there any other tool in solaris which can be used for such as procedure ?Thanks
推荐答案
您可以像这样使用-a将文件附加到mailx
You can attach files to mailx using -a like so
echo "this is the body of the email" | mailx -s"Subject" -a attachment.jpg [email protected]
,只要您与附件在同一目录中就可以正常工作.如果没有,你可以像`
so long as your in the same directory as your attachment that should work fine. If not you can just state the directory like `
samachPicsFolder/samachpic.jpg
这篇关于如何通过带有附件的mailx发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!