“Email failed to send” – understanding the error message?

Undelivered emails are frustrating. It’s hard enough to manage your deliverability strategy and focus on your engagement, but none of that is possible if your emails don’t make it out of the queue. If you’re at a loss for why your emails won’t send, stick with us through this post.



Let’s say you’ve integrated your app with email functionality, designed some great email content, developed a marketing strategy, and you think you’re good to go. But then you hit send from your email client, and you see one of the following error messages from your mail delivery subsystem:

  • Message not delivered.

  • Email failed to send.

  • Failed to send email.

You’ve probably thought long and hard about emails failing to get delivered, but what’s this about emails failing to send? In this article, we discuss some of the reasons for undelivered emails. Then, we share some ways to fix the issue and leave you with five tips for smoother future email sends.

What is the ‘Email failed to send’ message?

Simply put, this message is as it says: your email is currently not deliverable. Email delivery failure can feel really complicated but first place to look is at your SMTP server, the mail server that’s responsible for sending, receiving, and transferring your email via the Simple Mail Transfer Protocol (SMTP) protocol. SMTP then uses TLS/SSL to secure the network connection between your email client and your mail server.

Email sending failures often occur if you self-manage your own SMTP server, which comes with large technical overhead and security requirements.

Why do emails fail to send, and how can I fix it?

Don’t give up too easily – just because your email failed to send this time doesn’t mean you’ve stumbled into an irreparable situation. The reasons your email failed to send can vary from the pretty mundane (a bad internet connection) to technically complex issues (your SMTP server connection).

Here are some common reasons your email failed to send:

  1. You’re not connected to the internet.

  2. You’ve set up your email client with the wrong SMTP parameters.

  3. Your SMTP server connection is malfunctioning.

  4. You’re using the wrong SMTP port.

  5. Your firewall settings are getting in the way.

Let’s unpack each of these below and discuss how to fix them.

Learn more: Failure to send is a big email issue, but so is landing in the spam folder. If you’re messages are going through but just not being read, click here.

1. You’re not connected to the internet

Have you tried turning it off and on? Okay, we don’t mean to make light of the situation, but sometimes this happens. Check your internet connection first before tearing apart your SMTP server setup. Sometimes, the issue really is just that simple.

How to fix: Check your internet connection, or confirm any outages in your area that may have affected your send time.

2. You’ve set up your email client with the wrong SMTP parameters

Are your emails not sending in Microsoft Outlook or Gmail via your app integration? Chances are you’ve set up your webmail client with the wrong SMTP parameters or made a few typos.

How to fix: Check out this list of the most common parameters and see if you’ve set up your email client correctly.

Emai­l serv­ice prov­ider

SMTP­ sett­ings

Emai­l serv­ice prov­ider


SMTP­ sett­ings









3. Your SMTP server connection is malfunctioning

Okay, this is where it gets tricky. Your SMTP server connection may be malfunctioning. If your SMTP parameters are correctly set up, your email server may be down or not functioning.

How to fix: Here’s a list of common SMTP response codes and some SMTP commands to help you troubleshoot.

4. You’re using the wrong SMTP port

The old school convention states that your outgoing mail server should use port 25. However, some inbox service providers (ISPs) block port 25 because of spam issues.

How to fix: Try using port 587 instead. For our full breakdown of which SMTP port to use, check out our guide.

5. Your firewall settings are getting in the way

That’s right, check your antivirus or firewall settings. Sometimes, outgoing mail can be blocked by your own privacy protection protocols.

How to fix: Set up a proper exception rule for your firewall or antivirus program.

4 tips to avoid the ‘email failed to send’ message

The best way to fix a problem is to prevent it. With that being said, here are five ways to avoid that dreaded “email failed to send” message:

  1. Check your internet connection and email password. Typos and human errors are easy. Save yourself a few headaches by making sure your Wi-Fi connection works and that your authentication protocols are all properly set up before you hit send.

  2. Check your SMTP server details. Ensure you’ve correctly entered the right parameters and that your mail server is functioning as intended.

  3. Use the correct SMTP port. Port 587 is considered the default SMTP port for mail transfer, and it’s what you should use unless you’re blocked by your network or internet provider.

  4. Use an ESP that provides an SMTP relay service. ESPs, like Mailgun, provide an SMTP relay service that helps you circumvent all the headaches associated with running your own SMTP server. Leave delivery failures in the dust while the pros manage your email delivery.

Bonus tip: Email delivery is just one battle in the war to get your message read. Check out our guide on email deliverability to benefit from things like email authentication, IP address warmup, and other techniques to build your reputation as a trusted sender.

Wrapping up

And that’s failed email messages in a nutshell. Interested in axing those email failed messages? Check out Mailgun’s Free SMTP Relay Service and start sending with confidence.

Interested in more resources? We have lots. Be sure to subscribe to our newsletter so you don’t miss out on useful email info.

Keep me posted! Get our news and tips every week.

Send me the newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.

Related readings

InboxReady: Introducing the best way to improve email deliverability

No matter how good an email design looks, how compelling the copy reads, or how perfectly a campaign renders across email clients... none of it matters if your messages...

Read more

Email deliverability tools: InboxReady updates and what’s coming in 2023

Every business, big or small, has its own core purpose, and an effective email program rarely works its way into that conversation. But time and time again, email has proven to...

Read more

Popular posts

Email inbox.

Build Laravel 10 email authentication with Mailgun and Digital Ocean

When it was first released, Laravel version 5.7 added a new capability to verify user’s emails. If you’ve ever run php artisan make:auth within a Laravel app you’ll know the...

Read more

Mailgun statistics.

Sending email using the Mailgun PHP API

It’s been a while since the Mailgun PHP SDK came around, and we’ve seen lots of changes: new functionalities, new integrations built on top, new API endpoints…yet the core of PHP...

Read more

Statistics on deliverability.

Here’s everything you need to know about DNS blocklists

The word “blocklist” can almost seem like something out of a movie – a little dramatic, silly, and a little unreal. Unfortunately, in the real world, blocklists are definitely something you...

Read more

Mailgun iconSee what you can accomplish with the world's best email delivery platform. It's easy to get started.Let's get sending
CTA icon Mailgun Icon