function maild { (for a in "helo localhost" "AUTH LOGIN" "cmVudsclcjdSDeWF4dWYemh1LmNvbQ==" "OTlJdsljaw==" "mail FROM:<mail@mail.com>" "rcpt TO:<phone1@139.com>" "rcpt TO:<phone2@139.com>" "data"; do sleep 1 echo ${a} sleep 1 done echo "from:<mail@mail.com>" echo "subject:$ip $m disk full!" echo "to:<phone1@139.com,phone2@139.com>" echo "" echo "message" echo "." sleep 1 echo "QUIT")|telnet smtp.name.com 25 }