不允许使用邮箱名称。 服务器响应为: Mail from must equal authorized user
解决办法,
string strFormEmail=“”;
string strFromName="";
mail.From = new MailAddress(strFromEmail, strFromName);
此处的要显示在邮件中的发件邮箱格式要正确,并且邮箱名不能乱填。
不允许使用邮箱名称。 服务器响应为: Mail from must equal authorized user
解决办法,
string strFormEmail=“”;
string strFromName="";
mail.From = new MailAddress(strFromEmail, strFromName);
此处的要显示在邮件中的发件邮箱格式要正确,并且邮箱名不能乱填。