string smtp_username = ConfigurationManager.AppSettings["smtp_username"];
string pwd = ConfigurationManager.AppSettings["smtp_password"];
jmail.Message jmessage = new jmail.MessageClass();
jmessage.Charset = "UTF-8";
jmessage.From = smtp_username;//18.12.11
if (string.IsNullOrEmpty(ProjectName))
jmessage.FromName = "OA系统";
else
jmessage.FromName = ProjectName;
jmessage.Subject = _Subject;
jmessage.HTMLBody = _Body;
jmessage.AddRecipient(ReceiverEmail, null, null);
jmessage.MailServerUserName = smtp_username;//18.12.11
jmessage.MailServerPassWord = pwd;//18.12.11
bool ReturnValue = jmessage.Send("mail.ogawatech.com.cn", false);
jmessage.Close();
return ReturnValue;
执行到下面代码是
bool ReturnValue = jmessage.Send("mail.ogawatech.com.cn", false);
出现这样子的,
请问什么原因,(账号 密码 登录了 可以正常发送接收)
在线等!!!
这是由于邮件本身针对个别账号发送不了导致的