tmp=`echo $tmpfile|sed -e "s/#1#/${str1}/g"`
tmp=`echo $tmp | sed -e "s/#2#/${str2}/g"`
tmp=`echo $tmp | sed -e "s/#3#/${str3}/g"`
tmp=`echo $tmp | sed -e "s/#4#/${str4}/g"`
echo $mailuser >> /home/sum/shell/sendmail.log
/usr/local/bin/sendEmail -f
xxx@126.com -t "$mailuser" -s maiil.126.com -u "回答您的提問" -xu
xxx@126.com -xp 111111 -m "$tmp" -o message-charset=GB2312 >> /home/sum/shell/sendmail.log
num=`echo $?`
if [ $num -eq 0 ];then
((s=s+1))
else
((f=f+1))
echo "mail false user:$mailuser" >> /home/sum/shell/sendmail_false.log
fi
((sum=sum+1))
sleep 5s
done < $filename rm -rf /home/sum/maillist/sendmail/$mailfile fi done echo "sucess mail:$s" echo "false mail:$f" echo "total send mail:$sum"