
## SetHtmlBody (1 of 2) {#sethtmlbody_1}

Sets html body.

**Returns:** virtual void Aspose::Email::

```cpp
SetHtmlBody(System::String value, bool detectEncoding)
```

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

---

## SetHtmlBody (2 of 2) {#sethtmlbody_2}

**Returns:** void Aspose::Email::

```cpp
SetHtmlBody(System::String value, bool detectEncoding, bool htmlIsAscii)
```

| Parameter | Description |
| --- | --- |
| value |  |
| detectEncoding |  |
| htmlIsAscii |  |

