Frage

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?

War es hilfreich?

Lösung

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 
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top