文件名称:pop3
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:531.87kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
收邮件的协议有两种,一种是POP3,另外一种较为高级的协议是IMAP4,有的邮箱使用的是POP3协议,比如网易163免费邮箱、新浪免费邮箱、搜狐免费邮箱,有的邮箱使用的是IMAP4协议,比如Gmail免费邮箱,有的两种都可以,比如QQ邮箱。这些免费邮箱都需要做一些设置(例如选择开启 POP3)才能开启从客户端(比如自己做的接收邮件的程序)接收邮件的功能-private Pop3ConnectionState Connect(string host, int port, SslHandShake sslHandShake, bool ssl)
{
OnConnecting()
this._host = host
this._port = port
this._ssl = ssl
this._tcpClient = this.GetTcpClient(host, port)
if (this._tcpClient == null)
{
return Pop3ConnectionState.DISCONNECTED
}
this._stream = _tcpClient.GetStream()
if (ssl)
{
//do ssl handshake
if (sslHandShake == null) sslHandShake = new SslHandShake(host)
DoSslHandShake(sslHandShake)
if (_sslStream == null || _sslStream.IsAuthenticated == false)
{
this._connectionState = Pop3ConnectionState.DISCONNECTED
this._tcpClient = null
return this._connectionState
}
this._st
{
OnConnecting()
this._host = host
this._port = port
this._ssl = ssl
this._tcpClient = this.GetTcpClient(host, port)
if (this._tcpClient == null)
{
return Pop3ConnectionState.DISCONNECTED
}
this._stream = _tcpClient.GetStream()
if (ssl)
{
//do ssl handshake
if (sslHandShake == null) sslHandShake = new SslHandShake(host)
DoSslHandShake(sslHandShake)
if (_sslStream == null || _sslStream.IsAuthenticated == false)
{
this._connectionState = Pop3ConnectionState.DISCONNECTED
this._tcpClient = null
return this._connectionState
}
this._st
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pop3.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.