jmail问题 简单 答对50分

posaden 2006-09-16 05:02:05
安装了jmail4.3 直接在工程里引用了jmail.dll文件(我用的是vs2003(c#))
想用他来给163邮箱的用户发送确认邮件 我的代码如下:
private void Button1_Click(object sender, System.EventArgs e)
{
jmail.Message Jmail=new jmail.MessageClass();
String Subject="heshuai";
String body="my first email!";
String FromEmail="hesai1234@163.com";
String ToEmail="posden@163.com";
Jmail.Silent=false;
Jmail.Logging=true;
Jmail.Charset="GB2312";
Jmail.ContentType="text/html";
Jmail.AddRecipient(ToEmail,"","");
Jmail.From=FromEmail;
Jmail.MailServerUserName="hesai1234" ;
Jmail.MailServerPassWord="*****" ;
Jmail.ReplyTo="hesai1234@163.com";
Jmail.Subject=Subject;
Jmail.Body=body;
Jmail.Send("smtp.163.com",false);
Jmail.Close() ;

Response.Write("this is my first email!");

}

发送失败 原因是The message was undeliverable. All servers failed to receive the message
如何解决?帮忙 答对马上给分
...全文
162 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
diandian82 2006-09-16
  • 打赏
  • 举报
回复
up
avisnet 2006-09-16
  • 打赏
  • 举报
回复
试试Jmail.Send("username:password@smtp.163.com",false);
posaden 2006-09-16
  • 打赏
  • 举报
回复
这些都是正确的 用户名ok 密码ok stmp ok 还是报同样的错 我是在局域网代理上网的
一定要外网的ip吗?
还有 163的免费邮箱stmp是多少?
bobo0124 2006-09-16
  • 打赏
  • 举报
回复
发信,不需要指定Pop3服务器
The message was undeliverable. All servers failed to receive the message
应该是无法连接上服务器。
smtp.vip.163.com
确认一下用户名等设定是否正确。
posaden 2006-09-16
  • 打赏
  • 举报
回复
自己再up一下 高人都吃晚饭去了吗?
posaden 2006-09-16
  • 打赏
  • 举报
回复
怎么指定 详细点 谢谢
avisnet 2006-09-16
  • 打赏
  • 举报
回复
你没有指定pop3服务器
posaden 2006-09-16
  • 打赏
  • 举报
回复
不是故意发错地方的 实在是组件区人少 都没人帮忙…… 各位大哥救命啊
posaden 2006-09-16
  • 打赏
  • 举报
回复
再up一下 有人嘛~~?
posaden 2006-09-16
  • 打赏
  • 举报
回复
up 一下 有人能解决么?

111,125

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧