Outils pour utilisateurs

Outils du site


Panneau latéral

linux:mail (lu 23435 fois)

Ceci est une ancienne révision du document !


Mail

Envoyer un mail

$ mail -s "Hello World" someone@example.com
Cc: 
Hi Peter
How are you
I am fine
Good Bye
<Ctrl+D>
$ mail -s "This is the subject" somebody@example.com <<< 'This is the message'
$ echo "This is the body" | mail -s "Subject" -aFrom:Harry\<harry@gmail.com\> someone@example.com

$ mail -s "Hello World" user@yourmaildomain.com < /home/user/mailcontent.txt
$ echo "This is the message body" | mail -s "This is the subject" mail@example.com

– source: http://www.binarytides.com/linux-mail-command-examples/

Mutt

Outils plus performant que mail: mutt

apt install mutt

Envoyer un fichier en pièce jointe

echo "message" | mutt -a "/path/to/file.to.attach" -s "sujet du mail" -- adresse@mail.com
linux/mail.1516697216.txt.gz · Dernière modification: 23-01-2018 09:46 de edmc73