Mutt – A Command Line Email Client to Send Mails from Terminal

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Tarunika Shrivastava

I am a linux server admin and love to play with Linux and all other distributions of it. I am working as System Engineer with a Web Hosting Company.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

34 Responses

  1. Jai says:

    with gmail default settings under accounts (apps with account access/allow less secure apps – OFF), how can i send mail to gmail.

    • Ravi Saive says:


      You don’t need to On/Off default settings of Gmail, just have correct DNS MX record in place for your domain to send mails out using mutt command.

  2. Mikhil says:

    1) Hi team i read in the notes above that in command line or code where i am calling mutt for sending mail, if i need to change my sender id i need to update the .muttrc file at ~/.muttrc, can you confirm if my understanding is correct and it is the only option available ? If that is the only option can you share the tag name which needs to be used to update the sender id.

    2) Do we have any option which we can use to have a different replyto option ? i read option ‘t‘ is available to change the recipient address, can you help to confirm on this.

    • Ravi Saive says:


      Yes ~/.muttrc only file, where you can specify user related configuration and about replyto option, I never used it, but you should give a try and see..

  3. Thinh H. Hoang says:


    I am new to Linux, trying to learn how to Linux command line. I just got to play with “mutt” mail utility but somehow when I wanted to delete an email (after “mutt” mail displayed a list of mails) I could not delete it (Google says: “tag” before removing) I can not “tag” the one that I wanted to remove. Can anyone help ?

    Thank you very much

  4. venu mannooru says:


    When you enter the above command in the terminal, it opens up with an interface and confirms the recipient address and subject of the mail and opens up the interface, here you can make changes to recipient mail address.

    But i don’t want this interface to come up. Actually i am try to write a script to send email for every 2 hours automatically but mutt is not usable for my requirement as manual inputs are required for each time.

    Please help to share the option .


  5. Marv Wold says:

    First of all, this site has been very helpful to me. Thank you.

    I have a script file that reads:

    set realname="Client Name”
    set from = "[email protected]"
    set use_from=yes
    set envelope_from ="yes"

    At the receiving end, the email address ([email protected]) works great whether you click on it in the header or if you use REPLY.
    Where it fails is if you send it to an invalid address. It does not let you know it failed.

    Is there another something I should set? A SENDER setting?

    If I send it to [email protected] I get no notification that the email could not be delivered. I do if I send it from my personal address, so I know that there isn’t really a [email protected].

    My client needs to know if their invoices and statements are not being received.

    Any help would be greatly appreciated.

    • Marv Wold says:

      I should probably mention that [email protected] is an alias that sends an email to two different employees. It seems to work fine if you send it from a single name. Is an alias email just not going too work?

  6. Marcin says:

    Is it possible to send mail with attachment in command line?

    Now when I, for example, put in “mutt -s “Test Email[email protected] after that see mutt interface where I have to confirm many things. I don’t want it.

    I need an application which send me an email with an attachment from a command line without any confirmation. Only one command, enter and nothing more

  7. sri says:

    how can i unable mutt in my unix

  8. maidhar says:

    Hi ,
    What is PGP:clear ?,it is showing none to me.

  9. Prince says:

    I want to send the report of more than 400k records in CSV as an attachment but ‘mutt’ is not working, could you please help me in this.

  10. junaid says:

    hi admin i have an issue, the cat .mttrc not works

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.