
## ValidateMessage (1 of 2) {#validatemessage_1}

Validate eml message for corresponding to mime specification.

**Returns:** A EmlValidationErrorCollection containing the found validation error messages.

```cpp
ValidateMessage(System::SharedPtr < System::IO::Stream > stream)
```

| Parameter | Description |
| --- | --- |
| stream | A stream containing the message in eml format. |

---

## ValidateMessage (2 of 2) {#validatemessage_2}

Validate eml message for corresponding to mime specification.

**Returns:** A EmlValidationErrorCollection containing the found validation error messages.

```cpp
ValidateMessage(System::String fileName)
```

| Parameter | Description |
| --- | --- |
| fileName | A file name (eml). |

