Sending an email from command line in Linux is very easy. You can use “mail” program in Linux to acomplish your tasks. This method requires an active (or forwarding) SMTP service running in your local machine. Couple of ways I have used this program are listed as follows,