使用Blat批次檔發送Gmail郵件
Blat搭配Stunnel可以輕鬆發送Gmail郵件,參考 Gmail by Blat and Stunnel ,也許是版本關係,使用方式有些不同,但相距不遠
以下針對Gmail by Blat and Stunnel 補充說明
一、安裝Stunnel

二、設定(修改stunnel.conf),這部份不用處理,預設[gmail-pop3]、[gmail-imap]、[gmail-smtp]、[ssmtp]都沒註解


三、執行Stunnel
四、下載Blat - Windows Command Line SMTP Mailer

下載後會有doc、full兩個資料夾,會透過full\blat.exe發送Gmail郵件

五、將以下內容儲存成bat檔,只有主旨、本文需要用雙引號。bat跟blat.exe放在一起
blat -server 127.0.0.1 -f gmail帳號 -u gmail帳號 -pw gmail密碼 -to 收件人信箱 -subject "BlatTest" -body "It works!"
六、執行bat,命令提示字元就會開始發送郵件,很快就能收到郵件



註:
Stunnel是一個可以用SSL對任意 TCP 連接加密的程式,並可工作在Unix和Windows平臺上。它採用Client/Server模式,將Client端的網路資料採用SSL(Secure Sockets Layer)加密後,安全的傳輸到指定的Server端再進行解密還原,然後再發送到訪問的伺服器。
以下針對Gmail by Blat and Stunnel 補充說明
一、安裝Stunnel

二、設定(修改stunnel.conf),這部份不用處理,預設[gmail-pop3]、[gmail-imap]、[gmail-smtp]、[ssmtp]都沒註解


三、執行Stunnel
四、下載Blat - Windows Command Line SMTP Mailer

下載後會有doc、full兩個資料夾,會透過full\blat.exe發送Gmail郵件

五、將以下內容儲存成bat檔,只有主旨、本文需要用雙引號。bat跟blat.exe放在一起
blat -server 127.0.0.1 -f gmail帳號 -u gmail帳號 -pw gmail密碼 -to 收件人信箱 -subject "BlatTest" -body "It works!"
六、執行bat,命令提示字元就會開始發送郵件,很快就能收到郵件



註:
Stunnel是一個可以用SSL對任意 TCP 連接加密的程式,並可工作在Unix和Windows平臺上。它採用Client/Server模式,將Client端的網路資料採用SSL(Secure Sockets Layer)加密後,安全的傳輸到指定的Server端再進行解密還原,然後再發送到訪問的伺服器。
Post a Comment: