安装了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="[email protected]";   
String ToEmail="[email protected]";
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="[email protected]";
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 
如何解决?帮忙  答对马上给分

解决方案 »

  1.   

    发信,不需要指定Pop3服务器
    The message was undeliverable. All servers failed to receive the message 
    应该是无法连接上服务器。 
    smtp.vip.163.com
    确认一下用户名等设定是否正确。
      

  2.   

    这些都是正确的   用户名ok  密码ok  stmp ok 还是报同样的错  我是在局域网代理上网的
    一定要外网的ip吗?
    还有 163的免费邮箱stmp是多少?
      

  3.   

    试试Jmail.Send("username:[email protected]",false);