項目地址http://caspian.dotconf.net/menu/Software/SendEmail/
#發送者使用一個真實存在的互聯網郵件服務器來發送郵件
sendEmail -f [email protected] \
> -t [email protected] \
> -u "Test Mail" \
> -s smtp.wo.com.cn \
> -xu wangqiao \
> -xp TESTPASSWORD \
> -m "This is test mail"
May 23 09:54:25 wqtest sendEmail[1612]: Email was sent successfully!
發送給多個郵件接收人
sendEmail -f [email protected] \
> -t [email protected],[email protected] \
> -u "Test Mail" \
> -s smtp.wo.com.cn \
> -xu wangqiao \
> -xp TESTPASSWORD \
> -m "This is test mail"
May 23 09:56:22 wqtest sendEmail[1613]: Email was sent successfully!
使用抄送,密送接收人
sendEmail -f [email protected] \
> -t [email protected],[email protected] \
> -cc [email protected] \
> -bcc [email protected] \
> -u "Test Mail" \
> -s smtp.wo.com.cn \
> -xu wangqiao \
> -xp TESTPASSWORD \
> -m "This is test mail"
May 23 10:02:09 wqtest sendEmail[1629]: Email was sent successfully!
發送帶有附件的郵件
sendEmail -f [email protected] \
> -t [email protected] \
> -u "Test Mail" \
> -s smtp.wo.com.cn \
> -xu wangqiao \
> -xp TESTPASSWORD \
> -m "This is test mail"
> -a "/root/test.txt"
May 23 10:13:05 wqtest sendEmail[1639]: Email was sent successfully!
#使用文件內容發送郵件
sendEmail -f [email protected] \
> -t [email protected] \
> -u "Test Mail" \
> -s smtp.wo.com.cn \
> -xu wangqiao \
> -xp TESTPASSWORD \
> -o message-file=/root/test.txt
May 23 10:19:29 wqtest sendEmail[1643]: Email was sent successfully!
cat /root/test.txt|sendEmail -f [email protected] \
> -t [email protected] \
>-u "Test mail fujian" \
>-s smtp.wo.com.cn \
>-xu wangqiao \
>-xp TESTPASSWORD
Reading message body from STDIN because the '-m' option was not used.
If you are manually typing in a message:
- First line must be received within 60 seconds.
- End manual input with a CTRL-D on its own line.
May 23 10:21:54 wqtest sendEmail[1645]: Message input complete.
May 23 10:21:57 wqtest sendEmail[1645]: Email was sent successfully!
linux下使用sendEmail發郵件
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.