Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to send mail using command line  (Read 1276 times)

0 Members and 1 Guest are viewing this topic.

arunlalp

  • Guest
How to send mail using command line
« 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
===============================