How do I Send Email from the Command Line?

Posted by Joseph Pecoraro on Stack Overflow See other posts from Stack Overflow or by Joseph Pecoraro
Published on 2008-08-31T00:06:37Z Indexed on 2010/03/19 14:11 UTC
Read the original article Hit count: 305

Filed under:
|

I would like to quickly send email from the command line. I realize there are probably a number of different ways to do this.

I'm looking for a simple way to do this from a linux terminal (likely a bash shell but anything should do) and an alternative way to do this on Windows. I want to be able to whip up an email right on the command line or have the flexibility to pipe the message into the command line program. How would you go about doing this? If you have small scripts that would be fine as well.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about email

Related posts about command-line