How to send mails using Linux Commands?

Please help with ur suggestions if u know how to send email via the command line in Linux operating system?

Tags: , , , ,

One Response to “How to send mails using Linux Commands?”

  1. Aaron says:

    Use the mail command.

    The following will mail the contents of a file called mytext.txt

    # cat mytext.txt | mail -s thisissubject myrecipent@gmail.com

    HTH,
    Aaron

Leave a Reply