Oneliner to send e-mail with attachments on linux


SUBMITTED BY: Guest

DATE: Nov. 24, 2012, 11:10 a.m.

FORMAT: Bash

SIZE: 236 Bytes

HITS: 1414

  1. This requires the 'mutt' mail-client:
  2. mutt user@mail.com < bodymail.txt -s "Your docs" -a attach1.jpg attach2.pdf
  3. bodymail.txt: file containing body mail message
  4. -s: mail subject
  5. -a: attachment(s)

comments powered by Disqus