
## SetBodyContent (1 of 2) {#setbodycontent_1}

Sets the content of the body.

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

```cpp
SetBodyContent(System::String content, BodyContentType contentType)
```

| Parameter | Description |
| --- | --- |
| content | The content. |
| contentType | Type of the content. |

---

## SetBodyContent (2 of 2) {#setbodycontent_2}

Sets the content of the body.

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

```cpp
SetBodyContent(System::String content, BodyContentType contentType, bool compression)
```

| Parameter | Description |
| --- | --- |
| content | The content. |
| contentType | Type of the content. |
| compression | Specify that the content should be compressed. |

