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?
- echo "subject: foo bar baz
- come and get this god damned cat!
- ." | sendmail email@example.com
You need to login to post a comment.