Been looking through some of the examples and I am obviously doing something wrong as none of them are working for me. I can send a simple email with text, but when I try to send an attachment it says "file not found". I am running these statements from the folder that the file exists in:

echo -e "This is the body" | mutt -a /home/adrian/Backups/Server1/MyFile-2013-04-17.zip myEmail@gmail.com -s "This is the subject"

echo -e "This is the body" | mutt -a MyFile-2013-04-17.zip myEmail@gmail.com -s "This is the subject"

Is there any sort of pre-requisite for the types of files that can be sent, or a path syntax?

有帮助吗?

解决方案

Try this..

echo -e "This is the body" | mutt -a "/home/adrian/Backups/Server1/MyFile-2013-04-17.zip" -s "This is the subject" -- myEmail@gmail.com 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top