Hi,
Is there any method to verify an email address for validity using this API?
Hi,
Is there any method to verify an email address for validity using this API?
Hi Acton,
string emailToTest = "validuser@gmail.com";<o:p></o:p>
EmailValidator ev = new EmailValidator();
ValidationResult result = new ValidationResult();
ev.Validate(emailToTest, ValidationPolicy.MailServer, out result);
if (result.ReturnCode == ValidationResponseCode.ValidationSuccess)
Console.WriteLine("MailServer passed");
else
Console.WriteLine("MailServer failed");
ev.Validate(emailToTest, ValidationPolicy.SyntaxAndDomain, out result);
if (result.ReturnCode == ValidationResponseCode.ValidationSuccess)
Console.WriteLine("SyntaxAndDomain passed");
else
Console.WriteLine("SyntaxAndDomain failed");
ev.Validate(emailToTest, ValidationPolicy.SyntaxOnly, out result);
if (result.ReturnCode == ValidationResponseCode.ValidationSuccess)
Console.WriteLine("SyntaxOnly passed");
else
Console.WriteLine("SyntaxOnly failed");
We bought aspose.email for the project I am working on and in trying your code but I got the following error when verifying a valid email address of a customer… any ideas?
Hi Luis,
Yes
Hi Luis,
Hello Muhammad,
Hi Luis,
Hello Muhammad
Hi Luis,