項目地址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發郵件
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
nagios用第三方郵件服務器發送報警郵件
死地後生
2019-02-22 15:25:51
sendEmail問題總結
linuxmilan
2018-09-12 06:54:11
sendEmail詳解
王小酸
2018-09-11 08:49:03
linux下使用sendEmail發郵件
qq15570453
2018-09-11 08:12:27
SendEmail 安裝發郵件通知
yhw85
2018-09-11 08:03:56
linux sendEmail工具的安裝使用
xujh1986
2018-09-11 08:03:08
sendEmail的安裝與使用
yellow1people
2018-09-11 07:10:19
Linux下郵件發送 sendEmail介紹
李惟忠
2018-09-11 04:12:22
nagios用第三方郵件服務器發送報警郵件
liu_lingli
2018-09-11 02:09:27
linux 系統中常用的郵件服務
乌托邦中小蜗牛
2018-08-22 14:15:11
京東二面:爲什麼Netty要造FastThreadLocal?
Java中文社羣
2024-05-28 14:33:04
微信小程序預約視頻號直播
麥豇豆
2024-05-28 14:22:23
公衆號5月C#/.NET熱文一覽
追逐時光
2024-05-28 14:22:13
Spring Boot 3.3 正式發佈,王炸級更新,應用啓動速度直接起飛!
Java技術棧
2024-05-28 14:21:32