MailMessage.ValidateMessage
Contents
[
Hide
]ValidateMessage(string)
Validate eml message for corresponding to mime specification.
public static EmlValidationErrorCollection ValidateMessage(string fileName)
| Parameter | Type | Description |
|---|---|---|
| fileName | String | A file name (eml). |
Return Value
A EmlValidationErrorCollection containing the found validation error messages.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | fileName is null or empty. |
| FileNotFoundException | The specified fileName doesn’t exist. |
See Also
- class EmlValidationErrorCollection
- class MailMessage
- namespace Aspose.Email
- assembly Aspose.Email
ValidateMessage(Stream)
Validate eml message for corresponding to mime specification.
public static EmlValidationErrorCollection ValidateMessage(Stream stream)
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | A stream containing the message in eml format. |
Return Value
A EmlValidationErrorCollection containing the found validation error messages.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | stream is null. |
See Also
- class EmlValidationErrorCollection
- class MailMessage
- namespace Aspose.Email
- assembly Aspose.Email