运行blat命令发送邮件时无法连接到服务器(如果winsock.dll错误10060超时)

时间:2013-02-08 12:48:59

标签: cmd command mail-server blat wsastartup

我正在使用Blat这是命令行工具,用于从命令发送邮件。

首先,我运行install命令来存储在注册表中创建条目的邮件服务器.........

enter image description here

首先我将SMTP服务器设置为 smtp.mail.yahoo.com ,但错误相同。

之后我执行

blat C:\temp.txt  -to abcdef@gmail.com -superdebug

之后我得到了这个错误.......

C:\blat310\full>blat C:\temp.txt  -to abcdef@gmail.com -superdebug
Blat v3.1.0 (build : Feb  2 2013 11:00:32)
32-bit Windows, Full, Unicode

Checking option -to
superDebug: init_winsock(), WSAStartup() returned 0 (NO_ERROR)
superDebug: Hostname <smtp.mail.apac.gm0.yahoodns.net> resolved to ip address 10
6.10.167.87
superDebug: Official hostname is smtp.mail.apac.gm0.yahoodns.net
superDebug: Attempting to connect to ip address 106.10.167.87
superDebug: ::connect() returned error 10060, retry count remaining is 1
superDebug: ::connect() returned error 10060, retry count remaining is 0
superDebug: Connection returned error 10060
Error: Can't connect to server (timed out if winsock.dll error 10060)
superDebug: ::say_hello() failed to connect, retry count remaining is 1
superDebug: init_winsock(), WSAStartup() returned 0 (NO_ERROR)
superDebug: Hostname <smtp.mail.apac.gm0.yahoodns.net> resolved to ip address 10
6.10.167.87
superDebug: Official hostname is smtp.mail.apac.gm0.yahoodns.net
superDebug: Attempting to connect to ip address 106.10.167.87
superDebug: ::connect() returned error 10060, retry count remaining is 1
superDebug: ::connect() returned error 10060, retry count remaining is 0
superDebug: Connection returned error 10060
Error: Can't connect to server (timed out if winsock.dll error 10060)

1 个答案:

答案 0 :(得分:1)

错误10060表示您的连接超时,这是因为smtp.mail.yahoo.comsmtp.mail.apac.gm0.yahoodns.net上的端口995上没有任何内容。为什么要尝试连接到该端口呢?它用于POP3 over SSL(即邮件检索),而不用于SMTP(邮件提交)。

尝试端口25或(更可能)端口587.后者是邮件提交的默认端口(有关详细信息,请参阅RFC 4409)。