简体   繁体   中英

Linux - Formating subject and words in an email using mutt

I'm having some trouble to learn Linux and do some simple tasks, like the following:

I'm using MUTT to send an email with an attachment, but i need to format the text inside the email and in the subject. How can i make "ç", "ã" and spaces between lines? In portuguese we use them a lot.

Follows what i've got until now as an example:

echo "Friends, (Two spaces to the next line) ã ç " |/usr/bin/mutt -s "Subject - ã and ç needed" -a /home/cvna/ZELDA/example.txt -- cvfilho@timbrasil.com.br

If possible, could anyone post ways to advanced formatting like choosing kind of font, italic and so on?

Thanks!

Use a here document:

/usr/bin/mutt -s "Subject - ã and ç needed" -a /home/cvna/ZELDA/example.txt -- cvfilho@timbrasil.com.br <<EOF
Friends,

ã ç
EOF

For the two letters, if your locale ( LANG=pt_PT.utf8 ) is set correctly and your terminal can understand UTF-8, you should just be able to type them normally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM