Sending email from shell via mutt

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 -- '' < msg.txt

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


Share This


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>