linux 使用163郵箱發送郵件

#安裝郵箱客戶端
yum -y install mailx

#配置,編輯/etc/mail.rc
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb
set [email protected]
#set smtp=smtps://smtp.163.com:465
set smtp=smtp.163.com
set [email protected]
set smtp-auth-password=xxxxx #改密碼爲第三方登錄使用的密碼
set smtp-auth=login


#測試:
mail -s “主題” [email protected] < test.txt
#test.txt內爲郵件內容

發佈了69 篇原創文章 · 獲贊 3 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章