简单问题!!!!!!!40分送上!
请问 .net2.0自带的类 可以实现接收邮件吗?也就是说从邮件服务器上读取邮件。 --------------------编程问答-------------------- sf貌似不能.只能发邮件. --------------------编程问答-------------------- 还真没做过接收邮件.. --------------------编程问答-------------------- 没坐到沙发,惭愧 --------------------编程问答-------------------- 要想收邮件,可以自己封装pop3协议或者用第三方控件.如jmail --------------------编程问答-------------------- http://www.web745.com/article_html/2006/10/509.html --------------------编程问答-------------------- 不可以!jf --------------------编程问答-------------------- LS 说的自己封装 貌似很高深!!!!!!! --------------------编程问答-------------------- 我只要一到 pop.Connect("账号", "密码", "pop.163.net", 110); 就会出这个 错误
WSAGetLastError() returned 10051, Network is unreachable
有人知道吗?
int n = 2;
jmail.Message Msg = new jmail.Message();
jmail.POP3 jpop = new jmail.POP3();
try
{
jpop.Connect("账号", "密码", "pop.163.net", 110);
Count.Text = jpop.Count.ToString();
Msg = jpop.Messages[n];
Sendform.Text = Msg.FromName;
Subject.Text = Msg.Subject;
Datetime.Text = Msg.Date.ToString();
Body.Text = Msg.Body;
num.Text = Msg.Attachments.Count.ToString();
for (int i = 0; i < Msg.Attachments.Count; i++)
{
Msg.Attachments[i].SaveToFile("c:\\" + Msg.Attachments[n].Name);
}
jpop.Disconnect();
}
catch (Exception ex)
{
Count.Text = ex.Message.ToString();
}
--------------------编程问答-------------------- 只能发吧 --------------------编程问答-------------------- 我只要一到 pop.Connect("账号", "密码", "pop.163.net", 110); 就会出这个 错误
WSAGetLastError() returned 10051, Network is unreachable
有人知道吗?
int n = 2;
jmail.Message Msg = new jmail.Message();
jmail.POP3 jpop = new jmail.POP3();
try
{
jpop.Connect("账号", "密码", "pop.163.net", 110);
Count.Text = jpop.Count.ToString();
Msg = jpop.Messages[n];
Sendform.Text = Msg.FromName;
Subject.Text = Msg.Subject;
Datetime.Text = Msg.Date.ToString();
Body.Text = Msg.Body;
num.Text = Msg.Attachments.Count.ToString();
for (int i = 0; i < Msg.Attachments.Count; i++)
{
Msg.Attachments[i].SaveToFile("c:\\" + Msg.Attachments[n].Name);
}
jpop.Disconnect();
}
catch (Exception ex)
{
Count.Text = ex.Message.ToString();
}
--------------------编程问答-------------------- 提示不安全,你的这个操作安全性没保证啊
补充:.NET技术 , ASP.NET