subject="Email Test" body="Hello World. This is an email test and I am including this paragraph of content to gain extra points if there is a substantial body message included. Thank you." from="$1" to="$2" echo -e "Subject:${subject}\n${body}" | sendmail -f "<${from}>" -t "${to}" # USAGE # # Directly from this URL: # curl -s https://gist.github.com/amityweb/e0d1288a719e3ec2f028ec76b551cd86/raw/ | sh -s from@domain.com to@domain.com # Loal File: # sh send-test-email-from-to.sh from@domain.com to@domain.com