pub async fn check_email(input: &CheckEmailInput) -> CheckEmailOutput
Expand description

The main function of this library: verify a single email. Performs, in the following order, 4 types of verifications:

  • syntax check: verify the email is well-formed,
  • MX checks: verify the domain is configured to receive email,
  • SMTP checks: connect to the SMTP server and verify the email is deliverable,
  • misc checks: metadata about the email provider.

Returns a CheckEmailOutput output, whose is_reachable field is one of Safe, Invalid, Risky or Unknown.