SMTP Configuration - MailerSend

Knowledge base

How to send emails via SMTP with MailerSend

This guide walks you through sending emails with MailerSend's SMTP relay: setting up your credentials, understanding your plan's limits, and troubleshooting common errors along the way.

What is SMTP?

SMTP, or Simple Mail Transfer Protocol, is the standard set of rules by which emails are sent, received, and relayed over the Internet. Regular email clients (Gmail, Yahoo, Outlook etc) all use SMTP to send your message to a mail server that then uses SMTP to relay that message to the correct recipient server.

Remember:

MailerSend is a powerful platform designed specifically for sending transactional emails —automated messages triggered by user actions or events within your application or website.

Please note that configuring MailerSend’s SMTP relay to send regular emails is not recommended , as they may not render or send properly.

How to send emails via SMTP

Create a new SMTP user

To send emails using SMTP:

  1. Navigate to the Domains page.

  2. Find the domain from which you want to send emails via SMTP and click Manage .

Note:

Your domain must be verified in order to send emails.

  1. Scroll down to SMTP .

  2. Click Generate new user.

Note:

You will still be able to use the API if you create SMTP users.

By creating SMTP users, the following information will be automatically generated:

Username

Password

Note:

SMTP credentials are not exclusive to specific domains. All SMTP users can be used account-wide for any verified domains on the account.

Copy or download your password. You won't see it again after this.

You will be required to enter this information into your content management system either directly or via a plugin. Either way, all systems will require you to enter your Server (SMTP host), Port , Username and Password .

Change the SMTP username

The SMTP credentials available under your domain's dashboard are meant for authentication only with our SMTP relay. Your username is systematically generated and can't be chosen , but you can reset both your username and password anytime by clicking Reset credentials .

The SMTP username is not intended to be used as the sender/from address unless explicitly specified . Instead, you can choose to use any sender/from email address as long as it is under your verified domain(s). For instance, if your verified domain is example.com, you can send from any email address that ends in @example.com. This option should be available in the SMTP configuration you use to send emails.

SMTP limits

Max SMTP concurrent connections

The SMTP relay has a limit on the maximum number of concurrent connections. That limit is 5 for Sandbox, Free, Hobby and Starter accounts, and 50 for Professional (including the professional trial) and Enterprise.

Read our guide on how to configure SMTP connections correctly to avoid 421 connection errors.

Max SMTP users per domain

The SMTP relay has a limit on the maximum number of users per domain. That limit is 1 for Sandbox, Free and Hobby, 5 for Starter accounts, and 20 for Professional (including the Professional trial) and Enterprise.

In total, an account can have up to 1 SMTP user on the Sandbox, Free, or Hobby plan, 50 on Starter, and 1,000 on Professional (including the Professional trial) and Enterprise.

Daily requests & rate limits

MailerSend has a daily request quota for API and SMTP relay services. Every request is counted against the quota and is reset daily at midnight UTC. This quota is dependent on your MailerSend plan: Sandbox & Professional plan trial : 100 requests per day

Free plan : 100 requests per day

Hobby plan : 1,000 requests per day

Starter plan : 100,000 requests per day

Professional plan : 500,000 requests per day

Enterprise plan : 500,000 requests per day Additionally, the following general rate limits are also in place: SMTP relay requests: Up to 120 requests per minute. You can find more information about these limits in our developer documentation here .

How to troubleshoot SMTP emails not sending

We recommend you run through some troubleshooting steps to resolve SMTP errors, as usually this type of problem can happen for the following reasons:

Wrong username or password: these fields are case-sensitive, so you need to ensure both are exactly as shown in your account and that your provider is not changing them to lowercase or uppercase.

Sender email address: ensure the 'from' address you have opted to use matches the domain you've verified in your MailerSend account and is entered in lowercase.

Configuration: you need to connect using TLS (STARTTLS). MailerSend's SMTP relay supports TLS versions 1.2 & 1.3. We recommend double-checking that the server name is set to smtp.mailersend.net and that you're connecting to port 587.

Security settings: If you are testing MailerSend's SMTP using a local client, you'll need to ensure that your firewall does not block the connection. You might need to set your firewall software to allow SMTP sending using port 587.

You've reached your account's quota : the quota is reset every day, please wait or upgrade your account.

421 Service not available error : If you're seeing this error when sending via SMTP relay, your sending software is most likely trying to send too many emails through a single connection. To fix this, you need to configure your software to open multiple connections or implement proper send throttling. Check out our guide on configuring SMTP connections to learn more.

Send SMTP emails in WordPress

If you’re using WordPress, we recommend you use our own plugin, the Official SMTP Integration plugin, to start sending emails via SMTP. It's pre-set to match MailerSend's server requirements so you only have to add your username and password to start sending.

We recommend reading our detailed step-by-step guide here for instructions on installing and setting up the plugin.

Your SMTP credentials were compromised

We conduct routine account checks, and sometimes, we notice some accounts send phishing content emails via SMTP. When this happens, we notify you your SMTP credentials were compromised and those are being used to send such content. There are multiple reasons why this happens: - The credentials were obtained from the SMTP software. - Your local device could potentially have malware. - The SMTP password was shared as plain text through other platforms. If your SMTP credentials are compromised, we recommend you take the following steps:

Clean your local devices or the devices that had/have access to that password.

If your details are being used on your website, we suggest scanning it for potential malware and clearing the malware.

Change your MailerSend account password (the one you used to access your account) and enable 2-factor authentication .

Reset your SMTP credentials from your Dashboard -> Emails -> Domains -> Manage next to the domain in question -> Under SMTP, click manage next to the SMTP user -> click Reset credentials .

Update the SMTP password on your website once it is clean, and monitor your emails sent closely for the next few days.

Please follow the steps above and investigate how these credentials were compromised, as well as any steps you took to prevent this from happening again.

What’s the difference between SMTP and API?

Whether to use API or SMTP for sending depends on your specific use case and current setup:

If you send in lower volumes and rarely send your emails in bulk, or require a simple setup that doesn't require coding skills, you may find that SMTP relay works better for you. Sometimes, SMTP may be the only option available , depending on your limitations. For example, perhaps your content management system only uses SMTP, and you don't have a developer available to write the code required to switch to sending via API.

However, if you often send in bulk, would like to use MailerSend's template feature, have coding skills, or plan to use a no-code integration such as Zapier or Make, then MailerSend's email API would be the optimal solution.

The key difference between SMTP and API is that SMTP uses multiple back-and-forths between the client and the server to communicate, whereas the more feature-rich API receives HTTP requests directly from your app, and email sending is triggered directly from there.

To determine which route is best for you, compare the two below:

SMTP Relay Web API
Protocol SMTP (Simple Mail Transfer Protocol) HTTPS (HyperText Transfer Protocol)
Pros Maintenance Simple setup No coding skills required Easy to test Straightforward troubleshooting Compatible with most legacy systems Easy migration between services Ideal for bulk-sending Quicker email deliverability Compatible with MailerSend templates More customization options ( advanced personalization , delays, triggers)
Cons MailerSend templates cannot be sent via SMTP More potential points of failure Requires some coding skills Migrating services is more complex

Both SMTP and Web API share the same deliverability and rate limit characteristics.

Ultimately, the choice is yours. If you’re a casual email sender with a simple content management system, SMTP relay may be what works for you; whereas bulk senders and app developers may benefit more from the use of email API .

Need more info?

Feel free to reach out to support@mailersend.com . A member of our support team will gladly assist you.

Getting started: Sending your first email Navigating the app interface

Email Add and verify a sending domain How to merge multiple SPF records Start sending transactional emails SMTP relay Testing email sending with blackhole recipients Email Activity Analytics Bulk email sending Custom headers Custom unsubscribe headers Sending domains Domain reputation Domain tracking options Personalization in emails Sender identities Split Testing Surveys Tagging emails Templates How to translate email templates automatically How to configure SMTP connections correctly (421: Service not available error) How to enable Google Email Actions & Highlights How transactional emails work The difference between transactional emails and marketing emails

SMS Purchase an SMS phone number Start sending SMS SMS: How to handle opt-in and opt-out SMS verification and usage limits

WhatsApp Getting started with WhatsApp How to connect and use the WhatsApp sandbox Managing WhatsApp Business phone numbers How to create and manage WhatsApp templates WhatsApp message activity WhatsApp inbound messaging: How it works and how to set it up

Developer tools Managing API tokens Webhooks API & SMTP request logs REST API response codes

Deliverability Blocklist monitoring DMARC monitoring How to verify an email list Deferred emails Suppressions On Hold blocklist Spam complaints 403, 422, & 429 errors What are hard and soft bounces? Improve email deliverability Reduce unsubscribe rates Account reputation statuses

Account, billing & add-ons Plans, features and limits Plan add-ons User management Change password Two-factor authentication Switch accounts How to whitelist IPs How to add a domain space to your account How to request a dedicated IP How to set a billing limit on your account How to change your payment method How to change or cancel your plan Delete account VAT Collection for EU Customers VAT Collection for UK Customers GST Collection for Customers in India GST Collection for Customers in Canada VAT (IVA) Collection for Customers in Chile Sandbox mode and the Professional trial Sales Tax Collection for Customers in New York

Integrations How to integrate MailerSend with Zapier How to integrate MailerSend with Supabase How to integrate MailerSend with Airtable How to integrate MailerSend with Slack for email event notifications WordPress WooCommerce How to configure MailerSend on Google Cloud How to connect MailerSend's MCP with your AI tools

Agency guides Creating sub-accounts for clients Sending emails for clients: domains vs. sender identities

API reference ↗

Sending via SMTP

Create a new SMTP user

Change SMTP details

SMTP limits

Troubleshooting tips

Send SMTP emails in WordPress

Your SMTP credentials were compromised

SMTP vs API

Knowledge base

advanced personalization

Domains

How to configure SMTP connections correctly (421: Service not available error)

here

Official SMTP Integration

WordPress

Two-factor authentication

SMTP relay

email API

Getting started: Sending your first email

Navigating the app interface

Email

Add and verify a sending domain

How to merge multiple SPF records

Start sending transactional emails

Testing email sending with blackhole recipients

Email Activity

Analytics

Bulk email sending

Custom headers

Custom unsubscribe headers

Sending domains

Domain reputation

Domain tracking options

Personalization in emails

Sender identities

Split Testing

Surveys

Tagging emails

Templates

How to translate email templates automatically

How to enable Google Email Actions & Highlights

How transactional emails work

The difference between transactional emails and marketing emails

SMS

Purchase an SMS phone number

Start sending SMS

SMS: How to handle opt-in and opt-out

SMS verification and usage limits

WhatsApp

Getting started with WhatsApp

How to connect and use the WhatsApp sandbox

Managing WhatsApp Business phone numbers

How to create and manage WhatsApp templates

WhatsApp message activity

WhatsApp inbound messaging: How it works and how to set it up

Developer tools

Managing API tokens

Webhooks

API & SMTP request logs

REST API response codes

Deliverability

Blocklist monitoring

DMARC monitoring

How to verify an email list

Deferred emails

Suppressions

On Hold blocklist

Spam complaints

403, 422, & 429 errors

What are hard and soft bounces?

Improve email deliverability

Reduce unsubscribe rates

Account reputation statuses

Account, billing & add-ons

Plans, features and limits

Plan add-ons

User management

Change password

Switch accounts

How to whitelist IPs

How to add a domain space to your account

How to request a dedicated IP

How to set a billing limit on your account

How to change your payment method

How to change or cancel your plan

Delete account

VAT Collection for EU Customers

VAT Collection for UK Customers

GST Collection for Customers in India

GST Collection for Customers in Canada

VAT (IVA) Collection for Customers in Chile

Sandbox mode and the Professional trial

Sales Tax Collection for Customers in New York

Integrations

How to integrate MailerSend with Zapier

How to integrate MailerSend with Supabase

How to integrate MailerSend with Airtable

How to integrate MailerSend with Slack for email event notifications

WooCommerce

How to configure MailerSend on Google Cloud

How to connect MailerSend's MCP with your AI tools

Agency guides

Creating sub-accounts for clients

Sending emails for clients: domains vs. sender identities

API reference ↗

Sending via SMTP

Create a new SMTP user

Change SMTP details

SMTP limits

Troubleshooting tips

Send SMTP emails in WordPress

Your SMTP credentials were compromised

SMTP vs API