1.安裝sendEmail
2.發(fā)送 用你的郵箱aaa@qq.com 發(fā)送郵件到bbb@qq.com
sendEmail -s smtp.qq.com -f aaa@qq.com -t bbb@qq.com -u hello -m "測試數(shù)據(jù)" -a /test/databases/tm.sh -xu aaa -xp xxxx -o tls=auto
-s smtp.qq.com 指定服務(wù)器域名,郵件發(fā)送一般通過SMTP協(xié)議實(shí)現(xiàn),其域名一般為smtp.xx.com,qq郵箱服務(wù)器smtp.qq.com
-f aaa@qq.com 指定發(fā)送郵箱地址
-t bbb@qq.com 指定目的郵箱地址
-u hello 郵件標(biāo)題
-m "XXX" 郵件內(nèi)容,發(fā)送文件 mail.txt 換用-o message-file=mail.txt
-xu aaa 指定郵箱用戶名
-xp password 指定發(fā)送郵箱的密碼
-o tls=auto 加密方式,在none,tls,ssl自動選擇
郵件中粘貼福建 -a 文件1 | 文件2
2.發(fā)送 用你的郵箱aaa@qq.com 發(fā)送郵件到bbb@qq.com
sendEmail -s smtp.qq.com -f aaa@qq.com -t bbb@qq.com -u hello -m "測試數(shù)據(jù)" -a /test/databases/tm.sh -xu aaa -xp xxxx -o tls=auto
-s smtp.qq.com 指定服務(wù)器域名,郵件發(fā)送一般通過SMTP協(xié)議實(shí)現(xiàn),其域名一般為smtp.xx.com,qq郵箱服務(wù)器smtp.qq.com
-f aaa@qq.com 指定發(fā)送郵箱地址
-t bbb@qq.com 指定目的郵箱地址
-u hello 郵件標(biāo)題
-m "XXX" 郵件內(nèi)容,發(fā)送文件 mail.txt 換用-o message-file=mail.txt
-xu aaa 指定郵箱用戶名
-xp password 指定發(fā)送郵箱的密碼
-o tls=auto 加密方式,在none,tls,ssl自動選擇
郵件中粘貼福建 -a 文件1 | 文件2