MailMessageValidateMessage Method (String)

Validate eml message for corresponding to mime specification.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public static EmlValidationErrorCollection ValidateMessage(
	string fileName
)

Parameters

fileName
Type: SystemString
A file name (eml).

Return Value

Type: EmlValidationErrorCollection
A EmlValidationErrorCollection containing the found validation error messages.
Exceptions
ExceptionCondition
ArgumentExceptionfileName is null or empty.
FileNotFoundExceptionThe specified fileName doesn't exist.
See Also