#!/bin/sh FROM="qwerty@gmail.com" PASS="abcdefg" SUBJ="Theme" MSG="textntext" IN=`cat mail.txt` for TO in $(echo $IN); do sendEmail -v -f $FROM -s smtp.gmail.com:587 -xu $FROM -xp $PASS -t $TO -o tls=yes -u $SUBJ -m $MSG -o message-charset=UTF-8 sleep 4 done