Click or drag to resize
EmailValidator Class
EmailValidator validates email addresses without sending anything to the recipient.
Inheritance Hierarchy

Namespace: NeevSoftware.Components
Assembly: NeevSoftware.EmailValidator (in NeevSoftware.EmailValidator.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public sealed class EmailValidator : Component

The EmailValidator type exposes the following members.

Constructors
Name Description
Public method EmailValidator
Initializes a new instance of the EmailValidator class.
Public method EmailValidator(IContainer)
Initializes a new instance of the EmailValidator class with the specified container.
Top
Methods
Name Description
Public method CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public method Dispose
Releases all resources used by the Component.
(Inherited from Component.)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetMXRecords
Returns the MX records for a given domain name.
Public method GetType
Gets the type of the current instance.
(Inherited from Object.)
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method ToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Public method Validate
Validates a single email address. The Validate method will only return true if a response of '250' is received from the 'RCPT TO' command, and false otherwise. An EmailValidatorException is thrown if an error occurs at any time prior to the 'RCPT TO' command allowing validity detection of an email address with the highest degree of certainty.
Public method ValidateCSVFile
Validates a list of email addresses in a CSV file. Each email address must be found on a separate line by comma(,) itself.
Top
Properties
Name Description
Public propertyCode example BadEmailAddresses
An ArrayList of known bad email addresses.
Public property Container
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public property DnsServer
Gets or sets the Dns servers.
Public property DnsTimeOut
Gets or sets the amount of time a Dns query will wait to receive a response. Units are milliseconds.
Public property EmailSyntaxPattern
Gets or sets the regular expression pattern used to validate email syntax.
Public propertyStatic member LicenseKey
Get or Set License Key. This must be set to valid License Key.
Public property MailBoxDomains
Public property MXCashTimeOut
Sets the internal MX Records for the domains Cache timeout. By default, the timeout is a timespan of 30 minutes.
Public property Site
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public property SmtpFromDomain
Gets or sets the originating domain passed to the SMTP server as the HELO parameter.
Public property SmtpFromEmail
Gets or sets the email address passed to the SMTP server as MAIL FROM parameter.
Public property SmtpTimeOut
Gets or sets the amount of time for a Smtp Server to acknowledge a request. Units are milliseconds. Default value 30 seconds.
Public property SmtpTranscript
Gets all data sent to and received from the SMTP server.
Public property UseMXCach
Gets or sets whether to use dns caching.
Public property ValidatedLevel
Gets value of last succesfully validated level after Validate method is called.
Public property ValidationLevel
Gets or sets validation level.
Top
Events
Name Description
Public event Disposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Public event EmailValidationCompleteEvent
The event raised when performing email validation from CSV file.
Top
See Also