Linux sendmail example

Note to me: Using sendmail from the command line can be better than using the mail command from the command line. Something like this is pretty cool:

/usr/lib/sendmail -t -f al@devdaily.com -F "Al Alexander" < my_message.txt

This works very well if I put things like To:, Cc:, Reply-to:, etc, in the file named my_message.txt.

 

Add new comment

The content of this field is kept private and will not be shown publicly.

Anonymous format

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul type> <ol start type> <li> <pre>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.