Posted By

noah on 09/21/10


email file mail script sendmail howto automation

Versions (?)

sendmail without writing a file

 / Published in: Bash

Usually you see sendmail invoked with sendmail [email protected] < file.txt

What if you're scripting, and don't feel like writing a temp file for every email message?

  1. echo "subject: foo bar baz
  2. come and get this god damned cat!
  3. ." | sendmail

Report this snippet  

You need to login to post a comment.