Aspose::Email::Tools::Verifications Namespace Reference

Classes

class  DomainValidatingEventArgs
 Provides data for the DomainValidating event. More...
 
class  EmailValidator
 EmailValidator class provides the capability to validate e-mail addresses. More...
 
class  MailServerValidatingEventArgs
 Provides data for the MailServerValidatingEvent event. More...
 
class  MessageValidationError
 Represents the message validation error information. More...
 
class  MessageValidationResult
 Represents the result of message validation. More...
 
class  SyntaxValidatingEventArgs
 Provides data for the SyntaxValidating event. More...
 
class  ValidationResult
 Present the result of the email validating process. More...
 

Typedefs

using DomainValidatingEventHandler = System::MulticastDelegate< void(System::SharedPtr< System::Object >, System::SharedPtr< DomainValidatingEventArgs >)>
 
using MailServerValidatingEventHandler = System::MulticastDelegate< void(System::SharedPtr< System::Object >, System::SharedPtr< MailServerValidatingEventArgs >)>
 
using SyntaxValidatingEventHandler = System::MulticastDelegate< void(System::SharedPtr< System::Object >, System::SharedPtr< SyntaxValidatingEventArgs >)>
 

Enumerations

enum  MessageValidationErrorType {
  MessageValidationErrorType::MessageStructureError, MessageValidationErrorType::EmailAddressError, MessageValidationErrorType::TransferEncodingError, MessageValidationErrorType::EmptyMessageClassError,
  MessageValidationErrorType::UnknownFormat
}
 Enumerates the types of the message validation errors. More...
 
enum  ValidationPolicy { ValidationPolicy::SyntaxOnly, ValidationPolicy::SyntaxAndDomain }
 Presents the policy of validating email address. More...
 
enum  ValidationResponseCode { ValidationResponseCode::ValidationSuccess = 0, ValidationResponseCode::SyntaxValidationFailed = -1, ValidationResponseCode::DomainValidationFailed = -2, ValidationResponseCode::MailServerValidationError = -3 }
 Represents the response status of the mail validating process. More...
 

Typedef Documentation

◆ DomainValidatingEventHandler

using Aspose::Email::Tools::Verifications::DomainValidatingEventHandler = typedef System::MulticastDelegate<void(System::SharedPtr<System::Object>, System::SharedPtr<DomainValidatingEventArgs>)>

◆ MailServerValidatingEventHandler

using Aspose::Email::Tools::Verifications::MailServerValidatingEventHandler = typedef System::MulticastDelegate<void(System::SharedPtr<System::Object>, System::SharedPtr<MailServerValidatingEventArgs>)>

◆ SyntaxValidatingEventHandler

using Aspose::Email::Tools::Verifications::SyntaxValidatingEventHandler = typedef System::MulticastDelegate<void(System::SharedPtr<System::Object>, System::SharedPtr<SyntaxValidatingEventArgs>)>

Enumeration Type Documentation

◆ MessageValidationErrorType

Enumerates the types of the message validation errors.

Enumerator
MessageStructureError 

Indicates that the message structure is incorrect.

EmailAddressError 

Indicates that email address is invalid.

TransferEncodingError 

Indicates that message contains unexpected unencoded non-ASCII data.

EmptyMessageClassError 

Indicates that MessageClass is NULL or empty.

UnknownFormat 

Indicates that this file or stream is not a MAPI or MIME type.

◆ ValidationPolicy

Presents the policy of validating email address.

Enumerator
SyntaxOnly 

Validating the syntax of the email address.

SyntaxAndDomain 

Validating the syntax of the email address firstly, and then validate the domain of the email.

Deprecated:
It will be removed soon due to non standard responses from various mail servers which is a reason of incorrect working this feature.

◆ ValidationResponseCode

Represents the response status of the mail validating process.

Enumerator
ValidationSuccess 

The mail address validating is successful.

SyntaxValidationFailed 

The mail address validating process failed at the syntax validation.

DomainValidationFailed 

The mail address validating process failed at the domain validation.

MailServerValidationError 

The mail address validating process failed at the mail server validation.