Jmail的简单问题,白白送分啦.
jmail.Message Jmail=new jmail.MessageClass();
DateTime t=DateTime.Now;
string Subject= "您在医药网上的密码 ";
String body= "您在医药网上的密码是 "+newpass+ " 请抓紧时间修改密码 ";
String FromEmail= "abc@163.com ";
String ToEmail=ToMail;
Jmail.Silent=true;
Jmail.Logging=true;
Jmail.Charset= "GB2312 ";
Jmail.ContentType= "text/html ";
Jmail.AddRecipient(ToEmail, " ", " ");
Jmail.From=FromEmail;
Jmail.MailServerUserName= "abc " ;
Jmail.MailServerPassWord= "password " ;
Jmail.Subject=Subject;
Jmail.Body=body+t.ToString();
Jmail.Send( "smtp.163.com ",false);
Jmail.Close();
上面这段程序,abc@163.com这个邮箱我如果用的是我三年前注册的网易邮箱时可以发出信去,而用我刚刚注册的邮箱时却发不出信,但是程序却运行成功了,我的用那个新邮箱是两个小时前刚注册的,望高手指教.
------解决方案--------------------发错地方了吧