EmailAddressValidatorVerify Method (String) |
Validates a single e-mail address for correct syntax and, optionally, checks it for existence.
Namespace: MailBee.AddressCheckAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public AddressValidationLevel Verify(
string email
)
Public Function Verify (
email As String
) As AddressValidationLevel
Parameters
- email
- Type: SystemString
The e-mail address to check. Must be somewhat like "user@domain.com".
Return Value
Type:
AddressValidationLevelOK if the validation succeeded, or the particular validation level
at which the verification failed.
Exceptions Remarks Examples
This sample verifies a single e-mail address.
using MailBee;
using MailBee.AddressCheck;
EmailAddressValidator valid = new EmailAddressValidator();
valid.Log.Enabled = true;
valid.Log.Filename = @"C:\Temp\log.txt";
valid.DnsServers.Autodetect();
Console.WriteLine(valid.Verify("jdoe@company.com").ToString());
Imports MailBee
Imports MailBee.AddressCheck
Dim valid = New EmailAddressValidator
valid.Log.Enabled = True
valid.Log.Filename = "C:\Temp\log.txt"
valid.DnsServers.Autodetect()
Console.WriteLine(valid.Verify("jdoe@company.com").ToString())
See Also