## MailMessage.SetHtmlBody method

Sets html body.

```csharp
public virtual void SetHtmlBody(string value, bool detectEncoding)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The HtmlBody content text. |
| detectEncoding | Boolean | Detect body encoding if no encoding is specified for the MailMessage. |

### See Also

* class [MailMessage](../)
* namespace [Aspose.Email](../../mailmessage/)
* assembly [Aspose.Email](../../../)


