How do I send email attachments from a command prompt?1 min read

**Required Software** To do this, I’ll just install Mutt on my Ubuntu/Debian machine.

Here’s a very small example of an email string with an attachment. Then, I’ll provide an explanation of each option.

Where, 1. – is the recipient 2. /tmp/mailmessage.txt – is the main body of the e-mail (read message from the file “mailmessage.txt”) 3. /home/data/general_report_11062008.txt – is an attachment (with option -a) 4. “Test mail” – is a subject line (option -s)



I love learning new things and trying out the latest technology.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.