从net4india邮件服务器读取邮件 [英] Read mail from net4india mail server

查看:104
本文介绍了从net4india邮件服务器读取邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i需要使用net4邮件服务器从电子邮件ID中读取电子邮件。



我正在使用s22.dll来阅读和发送mails.it与gmail和yahoo acccounts完美配合。



但现在得到错误由于意外的数据包格式导致握手失败。当我更改net4邮件服务器的主机名时。



任何帮助..?



我尝试了什么:



_server =smtp.net4india.com;

_user =whstockreports @ gesaindia。使用(ImapClient Client = new ImapClient(_server,25,
$)
$ b _user,_ password,AuthMethod.Login,true))

{

IEnumerable< uint> uids = Client.Search(SearchCondition.Unseen()。和(

SearchCondition.Subject(New Edi HPL)));

}



i need to read emails from an email id with net4 mail server.

am using s22.dll to read and send mails.it worked perfect with gmail and yahoo acccounts.

But now gets error "The handshake failed due to an unexpected packet format." when i change host name for net4 mail server.

Any help..?

What I have tried:

_server = "smtp.net4india.com";
_user = "whstockreports@gesaindia.com";
_password = "123";

using (ImapClient Client = new ImapClient(_server, 25,
_user, _password, AuthMethod.Login, true))
{
IEnumerable<uint> uids = Client.Search(SearchCondition.Unseen().And(
SearchCondition.Subject("New Edi HPL")));
}

推荐答案

SMTP用于发送电子邮件,而不是读取电子邮件。您不能对SMTP服务器使用IMAP,您需要为该邮件主机找到相关的IMAP服务器,或者使用POP3和POP3组件失败(不是所有邮件服务都支持IMAP)。
SMTP is for sending email, not reading it. You can't use IMAP against an SMTP server, you need to find the relevant IMAP server for that mail host or failing that use POP3 and a POP3 component (not all mail services support IMAP).


这篇关于从net4india邮件服务器读取邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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