我正在尝试在电子邮件中插入表格。我在 6 行代码中出现以下错误(以“body”结尾 onavgErrorOutStDev +=“/table”)。错误是:“赋值的左侧必须是变量、属性或索引器”。该<table>启动是一个方法进行创建电子邮件之前/发送。如何修复错误?MailMessage errorOutStanDev = new MailMessage(); errorOutStanDev.IsBodyHtml = true; SmtpClient SmtpServerThree = new SmtpClient("smtp.xxxx.xxx"); errorOutStanDev.From = new System.Net.Mail.MailAddress("PerformanceUpdate@xxx.xxx"); errorOutStanDev.To.Add(new System.Net.Mail.MailAddress("xxxxxx@xxxx.xxx")); string htmlBody = "<body>" + "<p><b> The following errors have occurred more often than others</b></p>" + avgErrorOutStDev += "<tr>" + avgErrorOutStDev += "<td>" + sitename + "</td>"+ avgErrorOutStDev += "<td>" + avg + "</td>" + avgErrorOutStDev += "</tr>" + avgErrorOutStDev += "</table>" + "</body>";
1 回答
- 1 回答
- 0 关注
- 169 浏览
添加回答
举报
0/150
提交
取消