Click or drag to resize

AddressValidatorValidate Method

Note: This API is now obsolete.

Validates email address (email format, existence of MX record, SMTP connection).

Namespace:  Limilabs.Mail.Tools
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
[ObsoleteAttribute("This method is obsolete, please use ValidateFormat/ValidateMX methods -or- DnsHelper.GetSmtpServer and Smtp.TestMessageEnvelope instead.")]
public AddressValidationResult Validate(
	string address
)

Parameters

address
Type: SystemString
Email address to validate (e.g. mail@example.com).

Return Value

Type: AddressValidationResult
Result of the validation.
Remarks
Most SMTP servers won't allow connections on port 25 from an unknown IP address anymore, which means this method is no longer usable, unless you run a domain with SPF properly configured. Consider using ValidateFormat(String)/ValidateMX(String) methods.
See Also