On this page
Sending Emails from Command Line
Introduction
There can be great utility in sending emails from the command line. Everyone has their own use case, and I’ll explain how it works.
Mail is one of the most commonly used commands for sending emails:
|
|
I think this is clear enough. You can do whatever you want before the “pipe” and then send everything.
If you want to send an attachment, do this:
|
|
or
|
|
Mutt
Mutt is not specifically dedicated to sending emails, but the advantage is being able to attach files. Here’s another small example:
|
|
Last updated 21 Sep 2009, 13:26 CEST.