| 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
)
<ObsoleteAttribute("This method is obsolete, please use ValidateFormat/ValidateMX methods -or- DnsHelper.GetSmtpServer and Smtp.TestMessageEnvelope instead.")>
Public Function Validate (
address As String
) As AddressValidationResult
public:
[ObsoleteAttribute(L"This method is obsolete, please use ValidateFormat/ValidateMX methods -or- DnsHelper.GetSmtpServer and Smtp.TestMessageEnvelope instead.")]
AddressValidationResult Validate(
String^ address
)
[<ObsoleteAttribute("This method is obsolete, please use ValidateFormat/ValidateMX methods -or- DnsHelper.GetSmtpServer and Smtp.TestMessageEnvelope instead.")>]
member Validate :
address : string -> AddressValidationResult
Parameters
- address
- Type: SystemString
Email address to validate (e.g. mail@example.com).
Return Value
Type:
AddressValidationResultResult 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