无法使用POP3连接到邮件服务器 [英] Not able to connect to mail server using POP3

查看:409
本文介绍了无法使用POP3连接到邮件服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个邮件服务器并尝试使用控制台应用程序中的pop3连接到它。

但是异常..没有这样的主机找到。

当我点击手动邮件服务器网址和登录,我能够成功登录。

请指教。



我尝试过:



使用(Pop3 pop3 = new Pop3())
{
try
{
pop3.Connect(mail.cloud.xyz.com); //或ConnectSSL for SSL
pop3.UseBestLogin(mailadmin@cloud.xyz.com,XYZ);
}
catch(例外情况)
{
var mss = ex;
} //或

}

解决方案

找不到这样的主机表示无法通过任何名称查找方法(DNS,主机文件)解析服务器名称(无法确定相应的IP地址)。



最常见的原因是拼写错误。因此,请检查您的服务器名称或使用copy&糊。要检查名称解析,您可以打开命令提示符窗口并使用

 nslookup mail.cloud.xyz.com 



如果它仍然无效,则可能是使用过的库的问题。如果那是商业 LimiLabs 库(根据发布的代码似乎是这种情况),您可以在他们的论坛上询问: Limilabs Q& A [ ^ ]。


I have a mail server and trying to connect to it using pop3 from console application.
but getting exception .. no Such host found.
when i Hit the mail server url manually and login , i am able to login successfully.
please advice.

What I have tried:

using (Pop3 pop3 = new Pop3())
           {
               try
               {
                   pop3.Connect("mail.cloud.xyz.com");  // or ConnectSSL for SSL
                   pop3.UseBestLogin("mailadmin@cloud.xyz.com", "XYZ");
               }
               catch (Exception ex)
               {
                   var mss = ex;
               }// or

           }

解决方案

"No such host found" means that the server name could not be resolved (the corresponding IP address could not be determined) by any of the name lookup methods (DNS, hosts file).

The most common reason is a typo. So check your server name or use copy & paste. To check name resolving you can open a command prompt window and use

nslookup mail.cloud.xyz.com


If it still does not work it might be a problem of the used library. If that is the commercial LimiLabs library (which seems to be case according to the posted code), you might ask at their forum: Limilabs Q&A[^].


这篇关于无法使用POP3连接到邮件服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆