Beispiel #1
0
 public MailAddressStatus Verify(string email)
 {
     try
     {
         var  mxRecords = Resolver.GetMXRecords(email.Split('@').Last());
         SMTP smtp      = new SMTP(mxRecords);
         return(smtp.Verify(email));
     }
     catch (Exception)
     {
         return(MailAddressStatus.NotExists);
     }
 }
Beispiel #2
0
 public MailAddressStatus Verify(string email)
 {
     try
     {
         var mxRecords = Resolver.GetMXRecords(email.Split('@').Last());
         SMTP smtp = new SMTP(mxRecords);
         return smtp.Verify(email);
     }
     catch (Exception)
     {
         return MailAddressStatus.NotExists;
     }
 }