brief mutt parameters :
-s = subject
-a = attachment. multiple attachment with need multiple -a
common usage :
echo "the email body text" | mutt -s "the email subject" -a attachment01.txt recipient-email-addresse.g.
echo "this is the email body" | mutt -s "Re: subject" -a somepicture.jpg someone@some-domain.com
send an email with empty body :
echo | mutt -s "testing with empty body" recipient-email-addresse.g.
echo | mutt -s "Re: subject" someone@some-domain.com
send multiple attachment :
echo "the email body text" | mutt -s "test sending multiple attachment" -a attachment01.txt -a attachment02.txt recipient-email-addresse.g.
echo "this is the email body" | mutt -s "Re: the email comes with multiple attachment" -a picture01.jpg -a picture02.png someone@some-domain.com
alternative way to invoke mutt to include body text :
mutt -s "the email subject" -a attachment01.txt recipient-email-address < the-email-body-text-filee.g.
mutt -s "this is the email body" -a picture99.gif someone@some-domain.com < email-body.txt
Have fun !!!
No comments:
Post a Comment