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); } }
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; } }