首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >运行blat命令发送邮件时无法连接到服务器(如果winsock.dll错误为10060时超时)

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

Stack Overflow用户
提问于 2013-02-08 12:48:59
回答 2查看 16.3K关注 0票数 1

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

首先,我运行安装命令来存储邮件服务器,它像这样在注册表中创建条目.

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

在那之后我执行

代码语言:javascript
运行
复制
blat C:\temp.txt  -to abcdef@gmail.com -superdebug

在那之后我犯了个错误.

代码语言:javascript
运行
复制
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)
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-02-09 23:58:41

错误10060意味着您的连接超时,这是因为在smtp.mail.yahoo.comsmtp.mail.apac.gm0.yahoodns.net上端口995上没有监听内容。你为什么要连接到那个端口呢?它用于POP3通过SSL (即邮件检索),而不是用于SMTP (邮件提交)。

尝试端口25或(更可能)端口587。后者是消息提交的默认端口(详见RFC 4409 )。

票数 1
EN

Stack Overflow用户

发布于 2015-01-02 17:02:26

您的10060超时错误很可能是由您的邮件服务器不监听Blat默认SMTP端口# 25引起的。

许多ISP邮件服务器已经切换到SSL加密进行身份验证。此开关意味着使用SMTP端口# 465。但是,Blat目前不支持SSL。

你要么必须:

  1. 请您的ISP邮件服务器打开非SSL通信,或
  2. 为Blat(如Stunnel )获取SSL包装器,或
  3. 找到另一个支持SSL的命令行mailer程序。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14772967

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档