Admin-Ahead Community

Linux => General Linux => Topic started by: arunlalp on December 10, 2017, 10:39:06 pm

Title: How to send mail using command line
Post by: arunlalp on December 10, 2017, 10:39:06 pm
How to send mail using command line
==============================

Mutt is a command line based Email client. It’s a very useful and powerful tool to send and read mails from command line in Unix based systems. Mutt also supports POP and IMAP protocols for receiving mails.


Kindly go through the following format to send mail using "mutt" command.

==============================

# mutt -s "Subject of Mail" -a "path of attachment file" "email address of recipient" < "message text containing body of the message"

# mutt -s "Test mail" -a /home/arunlal/test.tar.gz  test@mywebsite.com < /tmp/message.txt
===============================