SetHtmlBody

MailMessage.SetHtmlBody method

设置 html 正文。

public virtual void SetHtmlBody(string value, bool detectEncoding)
范围类型描述
valueStringHtmlBody 内容文本。
detectEncodingBoolean如果没有为 MailMessage 指定编码,则检测正文编码。

也可以看看