你知道 SMTP GMAIL 的 IP 位址是什麼嗎(它允許你從批次視窗發送郵件)
@echo off
set repertoire="C:\Mon repertoire\"
set [email protected]
set [email protected]
set copie=-cc [email protected]
set subj=-s "Titre de mon message"
set server=-server smtp.domaine.com
set x=-x "X-Header-Test: header supplémentaire optionnel inséré dans le mail"
set debug=-debug -log envois-mails.log -timestamp
FOR /F "tokens=*" %%i IN ('DIR /B /O-D %repertoire%*.log') DO set fichier="%repertoire:"=%%%i" && GOTO DONE || GOTO DONE
: DONE
blat %fichier% -mime -8bitmime -to %eMail% %copie% -f %emetteur% %subj% %server% %debug% %x%
先感謝您
答案1
實際上,您應該使用網域位址而不是 IP 位址,因為 IP 位址可能很容易變更。
對於 google 網域中的 smtp 伺服器使用smtp.gmail.com
和連接埠587
。
可以找到有關該主題的一些詳細信息這裡。
附註 - 恕我直言,它是真是一件丟臉的事至少在評論之前訪問 superuser.com 並提出問題Google搜尋前 3 頁我gmail smtp settings
百分百肯定你沒有這麼做。