为什么在asp.net用jmail发不出邮件的呢? 10
我的具体代码是:jmail.MessageClassjm=newjmail.MessageClass();jm.Charset="GB2312";jm.Encoding=...
我的具体代码是:
jmail.MessageClass jm = new jmail.MessageClass();
jm.Charset = "GB2312"; jm.Encoding = "BASE64";
jm.ContentType = "text/html"; jm.ISOEncodeHeaders = false;
jm.Priority = Convert.ToByte(1);
jm.Silent = true;
jm.From =TextBox4.Text.Trim(); jm.FromName =TextBox8.Text.Trim();
jm.Subject = TextBox5.Text.Trim();
jm.MailServerUserName = TextBox2.Text.Trim();
jm.MailServerPassWord = TextBox3.Text.Trim();
jm.AddRecipient(TextBox7.Text.Trim(),"","");
jm.Body = TextBox6.Text.Trim();
if (jm.Send("stmp.yahoo.com.cn",false))
{
Response.Write("win");
}
else { Response.Write("不能发送"); }
jm = null;
已装了jmail,是不是一定要发到163的邮相去啊 展开
jmail.MessageClass jm = new jmail.MessageClass();
jm.Charset = "GB2312"; jm.Encoding = "BASE64";
jm.ContentType = "text/html"; jm.ISOEncodeHeaders = false;
jm.Priority = Convert.ToByte(1);
jm.Silent = true;
jm.From =TextBox4.Text.Trim(); jm.FromName =TextBox8.Text.Trim();
jm.Subject = TextBox5.Text.Trim();
jm.MailServerUserName = TextBox2.Text.Trim();
jm.MailServerPassWord = TextBox3.Text.Trim();
jm.AddRecipient(TextBox7.Text.Trim(),"","");
jm.Body = TextBox6.Text.Trim();
if (jm.Send("stmp.yahoo.com.cn",false))
{
Response.Write("win");
}
else { Response.Write("不能发送"); }
jm = null;
已装了jmail,是不是一定要发到163的邮相去啊 展开
2个回答
展开全部
首先要确认你的机器上装了jmail的组件!
如果能发到163就说明你的程序是没有问题的!
如果能发到163就说明你的程序是没有问题的!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询