设置
isBodyHtml为
true允许您在消息正文中使用HTML标记:
msg = new MailMessage("xxxx@gmail.com", "yyyy@gmail.com", "Message from PSSP System", "This email sent by the PSSP system<br />" + "<b>this is bold text!</b>");msg.IsBodyHtml = true;
设置
isBodyHtml为
true允许您在消息正文中使用HTML标记:
msg = new MailMessage("xxxx@gmail.com", "yyyy@gmail.com", "Message from PSSP System", "This email sent by the PSSP system<br />" + "<b>this is bold text!</b>");msg.IsBodyHtml = true;