
- 帖子
- 7
- 积分
- 20
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2018-5-23
|
[其他] 求助blat和sendemail邮件复制运行正常,bat就报错
本帖最后由 suixinlangzi 于 2025-2-26 18:29 编辑
blat的邮件发送复制代码运行正常,bat就报*** Warning *** The SMTP server did not accept Auth LOGIN PASSWD value.有哪位大神帮解惑下么?
set name=%date:~0,4%%date:~5,2%%date:~8,2%
set namet=%time:~0,2%%time:~3,2%%time:~6,2%
rem ----邮件主题----
set s="%computername% at %name% %time% open "
rem ----邮件内容-----
set body=" %computername% at %name% %time% "
rem ----收件邮箱-----
set t=123@189.cn
rem ----发件邮箱-----
set f=123@189.cn
rem ----邮箱秘钥-----
set pw=123456
rem ----执行发送-----
C:\automail\blat.exe -body %body% -s %s% -t %t% -server smtp.189.cn -f %f% -u %f% -pw %pw%
下面是sendemail的,也是同样的问题,复制运行没事sendemail.exe[21972]: Email was sent successfully!,直接bat就不行,提示sendemail.exe[30620]: ERROR => ERROR => SMTP-AUTH: Authentication to smtp.189.cn:25 failed.
set name=%date:~0,4%%date:~5,2%%date:~8,2%
set namet=%time:~0,2%%time:~3,2%%time:~6,2%
rem ----邮件主题----
set u="%computername% at %name% %time% open "
rem ----邮件内容-----
set m=" %computername% at %name% %time% "
rem ----收件邮箱-----
set t=123@189.cn
rem ----发件邮箱-----
set f=123@189.cn
rem ----邮箱秘钥-----
set pw=123456
rem ----执行发送-----
C:\sendemailnotls\sendemail.exe -f %f% -t %t% -s smtp.189.cn -xu %f% -xp %pw% -u %u% -m %m% |
|