Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mutt won't send attachment [closed]

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 [email protected] -s "This is the subject"

echo -e "This is the body" | mutt -a MyFile-2013-04-17.zip [email protected] -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?

like image 899
Adrian Avatar asked Oct 11 '25 20:10

Adrian


1 Answers

Try this..

echo -e "This is the body" | mutt -a "/home/adrian/Backups/Server1/MyFile-2013-04-17.zip" -s "This is the subject" -- [email protected] 
like image 111
vidit Avatar answered Oct 14 '25 11:10

vidit