Thursday, July 16, 2009

Nice script to send email from Terminal

Made this script using sendEmail command:

#!/bin/bash
echo -n "Enter \"Destination Address\" "
read A
echo -n "Enter \"Subject Line\" "
read B
echo -n "Enter \"Message\" "
read C
sendEmail -f abcdefghijklm@gmail.com -t $A -s smtp.myisp.net -u $B -m $C

No comments:

Post a Comment