Email Address Validation API - MailerSend
Email address validation API
Keep your recipient list clean and maintain great deliverability by automatically verifying incoming email addresses with the email address validation API.
Validate email addresses in real time
Embed the email validation API in your website or app sign-up forms to verify email addresses at the point of registration. Automatically block invalid and risky emails and keep your recipient list clean.
cURL PHP Node.js Go Python Ruby
curl -X POST \
https://api.mailersend.com/v1/email \
-H 'Content-Type: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {place your token here without brackets}' \
-d '{
"from": {
"email": "your@email.com"
},
"to": [\
{\
"email": "your@client.com"\
}\
],
"subject": "Hello from MailerSend!",
"text": "Greetings from the team, you got this message through MailerSend.",
"html": "Greetings from the team, you got this message through MailerSend."
}'
use MailerSend\MailerSend;
use MailerSend\Helpers\Builder\Recipient;
use MailerSend\Helpers\Builder\EmailParams;
$mailersend = new MailerSend(['api_key' => 'key']);
$recipients = [\
new Recipient('your@client.com', 'Your Client'),\
];
$emailParams = (new EmailParams())
->setFrom('your@email.com')
->setFromName('Your Name')
->setRecipients($recipients)
->setSubject('Subject')
->setHtml('Greetings from the team, you got this message through MailerSend.')
->setText('Greetings from the team, you got this message through MailerSend.');
$mailersend->email->send($emailParams);
const Recipient = require("mailersend").Recipient;
const EmailParams = require("mailersend").EmailParams;
const MailerSend = require("mailersend");
const mailersend = new MailerSend({
api_key: "key",
});
const recipients = [new Recipient("your@client.com", "Your Client")];
const emailParams = new EmailParams()
.setFrom("your@email.com")
.setFromName("Your Name")
.setRecipients(recipients)
.setSubject("Subject")
.setHtml("Greetings from the team, you got this message through MailerSend.")
.setText("Greetings from the team, you got this message through MailerSend.");
mailersend.send(emailParams);
package main
import (
"context"
"fmt"
"time"
"github.com/mailersend/mailersend-go"
)
var APIKey string = "Api Key Here"
func main() {
ms := mailersend.NewMailersend(APIKey)
ctx := context.Background()
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
subject := "Subject"
text := "Greetings from the team, you got this message through MailerSend."
html := "Greetings from the team, you got this message through MailerSend."
from := mailersend.From{
Name: "Your Name",
Email: "your@email.com",
}
recipients := []mailersend.Recipient{
{
Name: "Your Client",
Email: "your@client.com",
},
}
variables := []mailersend.Variables{
{
Email: "your@client.com",
Substitutions: []mailersend.Substitution{
{
Var: "foo",
Value: "bar",
},
},
},
}
tags := []string{"foo", "bar"}
message := ms.NewMessage()
message.SetFrom(from)
message.SetRecipients(recipients)
message.SetSubject(subject)
message.SetHTML(html)
message.SetText(text)
message.SetSubstitutions(variables)
message.SetTags(tags)
res, _ := ms.Send(ctx, message)
fmt.Printf(res.Header.Get("X-Message-Id"))
}
from mailersend import MailerSendClient, EmailVerificationBuilder
ms = MailerSendClient()
request = (EmailVerificationBuilder()
.email_verification_id("list-id")
.build_verify_list())
response = ms.email_verification.verify_list(request)
require "mailersend-ruby"
# Intialize the email class
ms_email = Mailersend::Email.new
# Add parameters
ms_email.add_recipients("email" => "your@client.com", "name" => "Your Client")
ms_email.add_recipients("email" => "your@client.com", "name" => "Your Client")
ms_email.add_from("email" => "your@domain.com", "name" => "Your Name")
ms_email.add_subject("Hello!")
ms_email.add_text("Greetings from the team, you got this message through MailerSend.")
ms_email.add_html("Greetings from the team, you got this message through MailerSend.")
# Send the email
ms_email.send
Check an entire list with bulk email verification
Post a GET request to verify an entire list of email addresses via the API. Ensure your database is always clean and up-to-date and protect your sender reputation.
Fast, reliable email verification API
Comprehensive results
Detect catch-all and role-based emails, full mailboxes, syntax errors, typos, disposable email addresses, and blocked mailboxes.
Maximize deliverability
Improve your deliverability by filtering out invalid emails before they have a chance to damage your sender reputation.
Lower bounce rate
Reduce the number of invalid emails that reach your list without having to lift a finger and see your hard bounce rate decrease.
Reduce sending costs
Ensure only real customers are added to your list and send to people who will open and engage with your emails.
Improve the user experience
Let users know when they’ve entered an incorrect email address so they can easily fix the issue and continue on the customer journey.
Collect all potential leads
Maximize your sales potential and avoid losing leads because they’ve entered the wrong email address.
Real-time email verification use cases
- E-commerce \ \ Improve the user experience on account creation or checkout. Ensure customers receive all vital communication about their purchases such as shipping notifications and invoices.
- SaaS \ \ Validate emails when new users sign up or change their account email address for a smooth user experience. Be sure that users can receive important notifications or password resets.
- Banks & fintech \ \ Check customers’ emails when they update their contact information so they can avoid losing access to their account and continue to receive important communication.
Integrations
Easily connect other web apps with MailerSend so they seamlessly work together to share information, automate workflows and enhance your customer experience.
Zapier](/content/integrations/mailersend-zapier-integration/index.html) WooCommerce](/content/integrations/official-woocommerce-plugin/index.html) WordPress](/content/integrations/official-smtp-plugin/index.html) Integrately](/content/integrations/integrately-mailersend-integration/index.html) Make](/content/integrations/mailersend-make-integration/index.html) Courier](/content/integrations/courier-mailersend-integration/index.html) Pabbly Connect](/content/integrations/pabbly-mailersend-integration/index.html) All integrations
MailerSend pricing
Get started with 500 emails per month for free or upgrade from $7/month to get more emails and features.
How many emails do you plan to send?
5K
Pay monthly
Pay yearly
Save 10%
USDEURGBP
Pricing in Euros and British Pounds is for informational purposes only. All billing invoices will be charged in US dollars.
Best value
Professional
For agencies and white-label resellers sending at scale
$99.00/month $1,188.00 billed yearly €90.47/month €1,085.60 billed yearly £75.68/month £908.12 billed yearly $110.00/month€100.52/month£84.09/month
50,000emails /month
150SMS /month
400
email verification credits
Extra usage
$1.30€1.19£0.99
/1,000 emails
$1.40€1.28£1.07/100 SMS
Best value
Starter
For growing startups and small businesses
$31.50/month $378.00 billed yearly €28.78/month €345.42 billed yearly £24.08/month £288.95 billed yearly $35.00/month€31.98/month£26.75/month
50,000emails /month
100SMS /month
100
email verification credits
Extra usage
$1.30€1.19£0.99
/1,000 emails
$1.40€1.28£1.07 /100 SMS
Best value
Hobby
For personal projects and side hustles
$6.30
/month
$75.60 billed yearly €5.76
/month
€69.08 billed yearly £4.82
/month
£57.79 billed yearly $7.00
/month
€6.40
/month
£5.35
/month
5,000
emails /month
100
email verification credits
Extra usage
$1.50€1.37£1.15
/1,000 emails
Free
For occasional email testing and sending
Get started for free — includes:
- 500 emails /month
- 10 email verification credits
- Email threads support
- Drag & Drop email builder
* Learn more about plan limits. | Taxes may apply, learn more.
Not sure yet?
Improve your transactional email delivery today
See all that MailerSend can do with a 2-week Professional plan trial. Access our email API, explore templates, send emails, and more!
Frequently asked questions
How does real-time email validation work?
Real-time email validation via API works by integrating an email validation service into your application using an API key. When an email address is entered, the API performs a series of checks on your behalf via API calls, automating the verification process. The check includes syntax validation, domain verification, MX record lookup, and sometimes SMTP verification to confirm the email's validity and deliverability. It returns the results immediately.
How does email validation impact email deliverability and sender reputation?
Email validation allows you to identify and remove invalid email addresses that can harm your sender reputation and deliverability. By sending to a clean email list with real recipients, your deliverability and sender reputation will be improved and protected from the negative impacts of sending to bad email addresses.
Can the email address validation API be integrated with any email platform?
MailerSend’s email verifier is for use with the MailerSend email delivery platform.
Do I need a paid plan to use the email validation API endpoint?
You don’t need a paid plan but you do need to purchase email verification credits for the validation to be run successfully. All plans (except Trial) will receive a number of free email address verification credits.