Do you want to check email error logs in WordPress?
By default, you can’t view email error logs in WordPress unless you know how to code in PHP.
Thankfully, there’s a much easier way to enable error logs for your emails in WordPress that requires no coding at all.
In this post, we’ll show you how to enable the email error log in WordPress the easy way.
Why Do You Need to Log Email Errors in WordPress?
Email error logs are important because they help you troubleshoot the exact issue preventing your emails from sending.
WordPress is notorious for email sending issues. But without an email error log, it’s not easy to determine the real cause of your email problems.
By default, WordPress doesn’t have a native email error logging system. However, you can use third-party plugins to track and log email errors for debugging purposes.
Below, we’ll show you how you can set up email error tracking in WordPress the simple way.
How to Enable the Email Error Log in WordPress
Enabling the email error log in WordPress is quite easy. We’ll guide you through the whole process.
In This Article
1. Install WP Mail SMTP
To start with, you’ll need to install WP Mail SMTP on your site. This plugin will log your email errors (in case there are any).
WP Mail SMTP primarily works to solve your email issues, so you likely won’t have any errors after installing the plugin on your site.
However, things can always go wrong and it’s always a good idea to log email errors.
Here, click on the Downloads tab and then press the Download WP Mail SMTP button.
While the plugin zip file is downloading, you can also obtain your account license key from this page. You’ll need this license key later on in the setup.
Once the zip file has finished downloading, go to your WordPress admin area. Then click on Plugins » Add New from the navigation menu on the left and press the Upload Plugin button.
Click on Choose File to open the file browser window. Then find and select the plugin zip file you just downloaded.
The plugin should install within a few seconds. Click on the Activate Plugin button to activate it.
The activation should launch the WP Mail SMTP Setup Wizard automatically.
But if it didn’t start by itself, you can go to WP Mail SMTP » Settings and then press the Launch Setup Wizard button.
The Setup Wizard will guide you through the next steps.
2. Select a Mailer Service
For WP Mail SMTP to work, you need to connect your email account to a mailer service. The Setup Wizard makes this really easy.
When the wizard starts, click on Let’s Get Started.
On the next screen, the wizard will require you to select a mailer.
We recommend SendLayer because it is a high-end yet affordable mailer service that’s very easy to connect with WP Mail SMTP. Plus, you can start sending emails for free.
If you’re not sure which mailer you want to use, check out this guide on the best transactional mailer services.
After making your selection, click the doc guide link for the relevant mailer from the table below:
|Mailers available in all versions||Mailers in WP Mail SMTP Pro|
|SMTP.com||Microsoft 365 / Outlook.com|
|Google Workspace / Gmail|
When you’re finished connecting your mailer with WP Mail SMTP, return to this post for the next step.
3. Enable WordPress Email Error Log
In WP Mail SMTP, the email error log (or Debug Events) is enabled by default as soon as you set up the plugin on your site.
To confirm that it’s enabled, go to WP Mail SMTP » Tools and then select the Debug Events tab from the horizontal navigation menu.
On this page, make sure that the Email Sending Errors option is enabled (it should be enabled by default).
The Email Sending Errors option tracks your emails for errors and maintains a log of these errors as they’re detected on your site over time.
If you’d like to get deeper into troubleshooting a particular email issue, you can also enable the Debug Email Sending option. When enabled, this option will record all kinds of email sending events rather than only logging errors.
This can be helpful if you can’t fix your emails and need more detailed information that you can share with your developer or our technical support for further assistance.
We advise against keeping the Debug Email Sending option enabled for long periods of time.
It’s more secure to only enable this feature when you’re facing a persistent email problem and disable it once the problem has been solved.
4. View WordPress Email Error Log
By default, WP Mail SMTP will display an alert message in your WordPress dashboard whenever it detects an email error event.
If you click the Error Event link in the debug notification, it will take you to the Debug Events page.
Another way to see the table of debug events is by navigating to WP Mail SMTP » Tools » Debug Events. You’ll find all event information on a table on the bottom of the page.
The Content column of each error event provides helpful context around the nature of the issue. Your developer should be able to fix the email error issue based on this information.
If you click on the Event#, it will expand into a box containing further details.
If these error logs don’t make sense to you, feel free to send these over to our support team. We’ll find the solution you need to fix your WordPress email sending issues.
And that’s it! You now know how to enable email error log in WordPress to make potential errors easier to diagnose.
Next, Eliminate Contact Form Spam
Do you know that contact form spam is a fixable problem? See our guide on how to stop contact form spam for tips.
Also, you might want to check out our post on best WordPress SMTP plugins to see how WP Mail SMTP compares to other similar plugins.
Ready to log your email errors?
Ready to fix your emails? Get started today with the best WordPress SMTP plugin. If you don’t have the time to fix your emails, you can get full White Glove Setup assistance as an extra purchase, and there’s a 14-day money-back guarantee for all paid plans.