August 30, 2023

Send an email from the command line with Mutt

$ mutt -s subject -b address_to_bcc -c address_to_cc -a file_to_attach -- recipient_address < message.txt

where message.txt is a file with a message written in plain text.

The shell might print this message: Fcc to an IMAP mailbox is not supported in batch mode” after you’ve run the command, note however that the message will have been sent successfully.
I looked through Mutt’s manual and suppose that bach mode” means sent from the command line” and that fcc has to do with saving outgoing message to specific folders. I noticed that when the shell outputs this message, emails are not saved to Sent.

Source: $ man mutt

✍✍✍✍✍✍✍✍✍✍✍✍✍✍

I do self-funded research and I'm writing a book.

> What's the book about?

About technologies and agency.

Meaning, technologies can foster agency. No doubt. But I am also asking:

Can usage of technologies give us a sense of empowerment while in fact undermining our abilities?

I posted a summary of the prologue on the homepage: https://yctct.com/

✍✍✍✍✍✍✍✍✍✍✍✍✍✍


personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki mutt

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct.com is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88