安装了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
如何解决?帮忙 答对马上给分
想用他来给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
如何解决?帮忙 答对马上给分
The message was undeliverable. All servers failed to receive the message
应该是无法连接上服务器。
smtp.vip.163.com
确认一下用户名等设定是否正确。
一定要外网的ip吗?
还有 163的免费邮箱stmp是多少?