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

<p>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.</p>

```
```
$ echo "This is the email body" | mail -s "This is the subject" me@email.com
```
```
Alternatively:
```
```
$ cat | mail -s "A few lines off the top of my head" me@here.com
This is where my
multiline
message would go
^D
```
```
^D - means press
ctrl
+
d