mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
547 B
547 B
Send an email from CLI
TL;DR
mail -s "Subject" recipient@mail.server
echo "" | mail -a attachment.file -s "Subject" recipient@mail.server
# send larger files
cat file.txt | mail -s "Subject" recipient@mail.server
# make "email-safe" the contents of a file
uuencode file.txt | mail -s "Subject" recipient@mail.server