- Make sure you have set up the Mail Transport Agent, e.g. exim4 or postfix
- Install mailutils, which contains commandmail:
sudo apt-get install mailutils
- send email using mail command:
-b: [BCC] -c: [CC] -s: [subject]echo "this is a test mail." | mail -s "test" -c john@myorg1.org -b tom@myorg2.org terry@myorg.org
No comments:
Post a Comment