https://raw.githubusercontent.com/blackdotsh/mandrillapp-cli/master/sendmail.sh
I made this because I got tired of setting up mail(x) / sendmail.
Benefits:
- Usually you get your mail delivered right to your inbox and doesn't get marked as spam. With the default settings of mail(x), that usually doesn't happen.
- Uses http / curl instead of smtp so it'll bypass firewalls blocking it.
- Less pain in the ass to setup.
I'm currently using it for login notifications / notifications on server statuses that's being directly sent to my SMS email. Surely someone will find this useful.
Instructions:
1) Just edit the bash file, put in your mandrillapp key along with the sender's credentials (be sure to setup sending domains).
2)
chmod u+x sendmail.sh
3)
./sendmail.sh "destinationemail@mailaddress.com" "hello" "this is from the command line!"
Enjoy :)