MailMessage.SetHtmlBody

MailMessage.SetHtmlBody method

Sets the HTML body, optionally detecting its encoding.

public virtual void SetHtmlBody(string value, bool detectEncoding)
ParameterTypeDescription
valueStringThe HTML body.
detectEncodingBooleantrue to detect the encoding from the content when the message has none set.

See Also