积极答复者
C#能否对邮箱里的某条特定的邮件进行接收

问题
-
例如:
ABC@sina.com邮箱里,有个邮件名为"ABC邮件"
能否实现只针对邮件名为"ABC邮件"这一条进行接收,其它邮件并不接收谢谢:)
http://blog.sina.com.cn/taotesea
答案
-
使用pop3协议的几个命令就可以了
你可以试试telnet pop3.sina.com 110 // 我不记得sina.com的pop3服务器地址和端口,你用实际的替掉
user yourmail@sina.com // 用户名
pass yourpassword // 密码
list // 列出序号
top 5 0 // 取第5个邮件的头,0代示只由邮件头,如果top 5 20表示取头外,再收邮件的前20行正文
retr 5 // 收第5个邮件
quit // 断开
了解这些,实现你的要功能就很简单了
- 已标记为答案 Leo Liu - MSFTModerator 2011年8月29日 2:25
全部回复
-
Hi 阿四,
请问你是在做Office Exchange相关的开发吗?
愿你快乐每一天,
Leo Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
使用pop3协议的几个命令就可以了
你可以试试telnet pop3.sina.com 110 // 我不记得sina.com的pop3服务器地址和端口,你用实际的替掉
user yourmail@sina.com // 用户名
pass yourpassword // 密码
list // 列出序号
top 5 0 // 取第5个邮件的头,0代示只由邮件头,如果top 5 20表示取头外,再收邮件的前20行正文
retr 5 // 收第5个邮件
quit // 断开
了解这些,实现你的要功能就很简单了
- 已标记为答案 Leo Liu - MSFTModerator 2011年8月29日 2:25
-
Hi 阿四,
我没有开发过Office
请问你是在做Office Exchange相关的开发吗?
愿你快乐每一天,
Leo Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
http://blog.sina.com.cn/taotesea -
使用pop3协议的几个命令就可以了
你可以试试telnet pop3.sina.com 110 // 我不记得sina.com的pop3服务器地址和端口,你用实际的替掉
user yourmail@sina.com // 用户名
pass yourpassword // 密码
list // 列出序号
top 5 0 // 取第5个邮件的头,0代示只由邮件头,如果top 5 20表示取头外,再收邮件的前20行正文
retr 5 // 收第5个邮件
quit // 断开
了解这些,实现你的要功能就很简单了
谢谢:),我试试
http://blog.sina.com.cn/taotesea