Knowledge base

How to send emails via SMTP with MailerSend

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.

How to send emails via SMTP

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.

Domains page in MailerSend.
Note: Your domain must be verified in order to send emails.

3. Scroll down to SMTP.

4. Click Generate new user.

Note: You will still be able to use the API if you created SMTP users.

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

  • Username

  • Password

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.

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

By enabling SMTP, the following information will be automatically generated:

  • Username

  • Password

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.

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

How to troubleshoot SMTP emails not sending

Please note you won't be able to send any emails if:

  • Your account is unapproved - fill out your approval questionnaire and ask for our Customer Support team to approve your account.

  • You're sending from a different FROM email address than one of your verified domains - use only verified domains or subdomains on your FROM email address.

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

  • The reply-to email address is invalid - ensure all email addresses are valid.

Additionally, you may be asked to provide the type of encryption. You must always use TLS encryption.

Note: If you’re using Wordpress, we recommend you to 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.

What’s the difference between SMTP and API?

The key difference between SMTP and API is that the 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 the email sending is triggered directly from there.

Additionally, without the help of an integration tool such as Zapier, some coding knowledge is required to send emails via API whereas no such knowledge is required to send emails via SMTP.

Now and again 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.

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 characteristics when it comes to deliverability.

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.