C# 使用ChilKat连接到OutLook 2007(IMAP服务器)时出现问题
当我试图以编程方式连接到IMAP outlook邮箱时,我收到了一个暂停错误。我可以连接服务器,但无法登录。我100%确信我使用的是正确的用户名和密码C# 使用ChilKat连接到OutLook 2007(IMAP服务器)时出现问题,c#,C#,当我试图以编程方式连接到IMAP outlook邮箱时,我收到了一个暂停错误。我可以连接服务器,但无法登录。我100%确信我使用的是正确的用户名和密码 登录响应:aaac没有登录失败 从IMAP服务器收到失败的登录响应 失败 提前感谢您……对于Chilkat组件,即使您的许可证密钥无效,您也会收到相同的错误。 请看地图 Component.LastErrorText 有详细资料 试一试 Chilkat.Imap Imap=新的Chilkat.Imap bool succ
登录响应:aaac没有登录失败 从IMAP服务器收到失败的登录响应 失败
提前感谢您……对于Chilkat组件,即使您的许可证密钥无效,您也会收到相同的错误。 请看地图
Component.LastErrorText
有详细资料
试一试
Chilkat.Imap Imap=新的Chilkat.Imap
bool success; //string responseString;
// Anything unlocks the component and begins a fully-functional 30-day trial.
success = imap.UnlockComponent("Anything for 30-day trial");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}
imap.Port = 993;
imap.Ssl = true;
// Connect to an IMAP server.
success = imap.Connect("servername.na.company.org");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}
success = imap.IsConnected() ;
MessageBox.Show("suc"+success);
success = imap.Login("username", "pwd");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}
// Select an IMAP mailbox
success = imap.SelectMailbox("firstname.lastname@xxxx.com");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}
loginResponse:aaac NO Login Failed从IMAP服务器收到失败的登录响应失败……。上面写着:DLL日期2010年12月22日UnlockPrefix:Anything for 30天试用用户名:abc组件:.Net 2.0登录用户名连接类型:未加密的TCP/IP登录响应:aaac NO Login Failed从以下服务器收到失败的登录响应IMAP服务器故障您确定您的用户名和密码正确吗?还要检查从您工作的地方到该位置的可访问性。请您解释一下OutLook 2007 IMAP Server是什么意思?这正是我所使用的…..但仍然会出现错误…..但当您说IMAP.ConnectIP地址时,我注意到了;我可以使用服务器名称而不是IP地址,或者我只需要使用IP地址???尝试IP,同时Outlook2007是客户端正确吗?。为什么提到Outlook 2007 IMAP服务器。。。。只是为了我的理解,你好。你已经找到答案了吗?从2003年迁移到2010年后,我也遇到了同样的问题。Im在端口993上使用ssl。我可以连接到服务器,但无法登录?
bool success; //string responseString;
// Anything unlocks the component and begins a fully-functional 30-day trial.
success = imap.UnlockComponent("Anything for 30-day trial");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}
imap.Port = 993;
imap.Ssl = true;
// Connect to an IMAP server.
success = imap.Connect("servername.na.company.org");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}
success = imap.IsConnected() ;
MessageBox.Show("suc"+success);
success = imap.Login("username", "pwd");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}
// Select an IMAP mailbox
success = imap.SelectMailbox("firstname.lastname@xxxx.com");
if (success != true)
{
MessageBox.Show(imap.LastErrorText);
return;
}