联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
Originally posted by bjsh at 2007-4-26 08:15: 好啊! 这样就可以和兄学习到好东西了;呵呵
Originally posted by bjsh at 2007-4-26 09:59: 刚才看了下: 对于以下的网站 163 yahoo qq hotmail gmail 56 sina sohu 21cn 和163相同处理方式的有: smtp.qq.com 219.133.60.51 smtp.sina.com 202.108.3.233 smtp.sohu.com 22 ...
Originally posted by flyinspace at 2007-4-26 10:55: 其实可以设定.ini文件的。 要不发送邮件反而被你们搞复杂了。 ------------------------------------------------------------------------
=====参数检测======不管参数怎么输入都行==============
D:\post>for /F "tokens=1-2 delims=:" %a in ('findstr /N . p-mailsend.log') do (set "%a=%b" ) D:\post>(set "1=220 163.com Anti-spam GT for Coremail System (163com[20050206])" ) D:\post>(set "2=250 OK" ) D:\post>(set "3=334 fdsfdsfsadfsadsf" ) D:\post>(set "4=334 dfsdfsdsfdfdfdsf" ) D:\post>(set "5=235 Authentication successful" ) D:\post>(set "6=250 Mail OK" ) D:\post>(set "7=250 Mail OK" ) D:\post>(set "8=354 End data with <CR><LF>.<CR><LF>" ) D:\post>(set "9=250 Mail OK queued as smtp10,dfsfdsdfsfdsfsdfdsdsf==.121322316541321 13213" ) D:\post>(set "10=221 Bye" ) D:\post>if not defined 10 (echo 发信不成功 & goto :eof ) D:\post>echo !10! | findstr "^250" 1>nul 2>nul || (echo 发信不成功 & goto :eof ) 发信不成功