Would you like to keep records of every email that’s sent out from your WordPress site? With WP Mail SMTP, you can easily enable email logging. Plus, you can quickly see if any emails were not sent successfully.
In this tutorial, we’ll show you how to enable and use Email Logs in WP Mail SMTP.
Enabling Email Logging
Before we get started, be sure to install and activate WP Mail SMTP on your WordPress site.
In the left WordPress admin menu, you’ll need to go to WP Mail SMTP » Settings. Then, click on the Email Log tab.
Once you’ve opened the Email Log page, you’ll see an option labeled Enable Log.
If you check the box labeled Enable Log, a record will be made of every future email sent out from your website.
When this option is enabled, details for each email record will include:
- Email status (whether the email was sent successfully)
- Date and time sent
- Subject line
- Recipient email address(es), including CC and BCC
- From email
- Number of attachments
- Mailer options used
- Additional technical details (such as content-type, MIME, etc)
Log Email Content
If you decide to enable email logs, you’ll see an additional checkbox labeled Log Email Content. When this box is checked, your email logs will also include the actual content of emails sent out from your site.
Note: Please consider carefully before enabling email content logging. Email content may include sensitive information, such as user logins. By enabling this option, all email content will be stored as plain text (not encrypted) in your site’s database.
Viewing Email Logs
To view email logs, you’ll need to click on WP Mail SMTP » Email Log in the left WordPress admin menu.
This main log page will display all logged emails. By default, the newest logs will be shown at the top of the list.
To see more details, you can click on the Subject for any log. This will open a page for the individual email log.
That’s it! You can now set up email logging for your WordPress site using WP Mail SMTP.
Next, have you set up a mailer yet? Be sure to check out our complete guide to WP Mail SMTP mailers for help deciding which mailer is likely to be the best fit for your site.