Sending email from shell via mutt

9 Oct 2012

A quick example of sending email from the shell via mutt.

% cat msg.txt 
pdf attached. Sonia.

for i in *.pdf ; do              
  mutt -s "pdf - $i" -a $i -- 'foo@hotmail.com' < msg.txt
done

No rocket science, just saving me from RTFM’ing next time…

comments powered by Disqus

  « Previous: Next: »