項目地址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
一款基於C#開發的通訊調試工具(支持Modbus RTU、MQTT調試)
追逐時光
2024-05-19 14:21:58
Linux/Golang/glibC系統調用
藍天上的雲℡
2024-05-19 14:21:17
讓python代碼找到文件路徑的最好方法
張博的博客
2024-05-19 14:19:47
Python 潮流週刊#51:用 Python 繪製美觀的圖表
豌豆花下貓
2024-05-19 14:19:07
24小時熱門文章
-
釘釘打卡速度慢
-
Nginx R31 doc 官方文檔-01-nginx 如何安裝
-
Python 潮流週刊#51:用 Python 繪製美觀的圖表
-
Qt/C++音視頻開發74-合併標籤圖形/生成yolo運算結果圖形/文字和圖形合併成一個/水印濾鏡
-
挑戰程序設計競賽 2.2章習題 POJ - 3617 Best Cow Line 貪心
-
字節面試:MySQL什麼時候 鎖表?如何防止鎖表?
-
.NET8連接SQL SERVER 2008 R2 報:證書鏈是由不受信任的頒發機構頒發的
-
golang開發環境搭建(win10)
-
python計算機視覺學習筆記——PIL庫的用法
-
Golang初學:獲取程序內存使用情況,std runtime