Email address verification

Check email addresses are real and exist using MailSlurp email verification.

This post is out-dated. Please see the new email verification guide.

The process of checking email addresses to ensure they are real and can receive emails is important for many applications. MailSlurp provides a free email address verification and checking function that calls mail servers to ask if given email addresses exist. You can verify email addresses online using the MailSlurp dashboard or in code and tests using the MailSlurp developer SDK.

Verify email addresses online for free

You can use the MailSlurp dashboard to verify email addresses for free.

validate email address

Simply sign-up or login to MailSlurp using the online email dashboard and navigate to the MailServer section in the sidebar. Enter an email address and click submit to validate the email.

Why verify email addresses

Reducing bounce emails and complaints is the main reason to verify email addresses. Keeping your email address list clean. If your mailserver creates too many bounce emails then your emails may not be delivered to other servers and your spam reputation will increase. To avoid this use the MailSlurp email verification features.

Email API usage - verify email addresses in code

Use the MailSlurp email API to test email accounts are valid. Here is an example in Java:

class Test {
    public void canVerifyEmailAddresses() throws ApiException {
        EmailVerificationControllerApi verificationControllerApi = new EmailVerificationControllerApi(apiClient);
        ValidateEmailAddressListResult validateEmailAddressListResult = verificationControllerApi.validateEmailAddressList(new ValidateEmailAddressListOptions().addEmailAddressListItem("contact@mailslurp.dev"));
        assertEquals(true, validateEmailAddressListResult.getResultMapEmailAddressIsValid().get("contact@mailslurp.dev"));
    }
}

How does it work?

MailSlurp derives a mailserver for an email address by digging the MX records for the domain. It then connects via telnet to the server and sends the rcpt to:<emailaddress> command to check that the email exists on the server. This is the most reliable way to ensure that an email address really exists. You must have a plan that includes the Email Validation product to use the verification service.

See the verification starter guide or the email verification documentation for more info.

Related content

Bounce email: verify address lists to reduce spam

Check email addresses exist before sending emails to reduce bounce-back returns and avoid spam bans.

Email Bounces: What to Do About Them?

Email Bounces: What to Do About Them?

Keeping your email marketing list clean - avoiding bounces and complaints

Keeping your email marketing list clean - avoiding bounces and complaints

Email address verification

Check email addresses are real and exist using MailSlurp email verification.

Email verification: checking a list of email addresses to reduce bounces

Avoid bounces and deliver emails to your customers with email verification and validation.

Reducing email bounces and maintaining account reputation using webhooks

Setup bounce notification webhooks for your account to reduce email bounces

Ready to dive in?Start building email applications today.