CodeNewbie Community 🌱

li job
li job

Posted on

Set Up WordPress Email Logs In Simple Steps

Step 1. Install the WP Mail SMTP Plugin

First, install and activate the WP Mail SMTP plugin on your WordPress site.
You may prefer to let the WP Mail SMTP team do the work of setting this all up for you. In that case, be sure to check out the White Glove Setup option, where the team handles your mailer setup and testing.
Once the WP Mail SMTP plugin is activated, head to your WordPress dashboard.

Step 2. Enable WordPress Email Logs

From your WordPress dashboard, go to WP Mail SMTP » Settings. Then, click on the Email Log tab.

From the Email Log page, you’ll spot an option called Enable Log. This will keep a record of every email sent out from your website moving forward.

With this Enable Log option, details for each WordPress email record will include:

Email Status (lets you know if it was sent successfully)

Date and Time Sent
Subject Line
Recipient Email Address(es) (including CC and BCC)

From Email
Number of Attachments (in case you’ve set up your forms to accept multiple attachments)

Mailer Option Used
Additional Technical Details (such as content-type, MIME, etc.)
Go ahead and click the box next to Enable Log. Once you select this, more options will appear underneath that one.

Log Email Content — Turning on this setting will store the content of all the emails sent from your site. Consider carefully if you really need this option on, because all email content will be stored as plain text (not encrypted) in your site’s database, which is a security risk.

Save Attachments — If you enable this option, all email attachments will be saved in your WordPress site’s Uploads folder. Sites that send a lot of large attachments might have disk space issues if this setting is on.
Open Email Tracking — With this option on, you’ll be able to see if users have opened your emails.

Click Link Tracking — This option lets you see if users have clicked on any links in your emails.
Webhooks Status — This setting is only available for certain WP Mail SMTP mailers. By default, it should be set to Subscribed. This lets the plugin update your email logs with delivery statuses.
Log Retention Period — You can use this dropdown to determine how long logs should be saved on your site before they’re deleted forever.

It’s completely up to you if you want to enable these settings. They’re all optional and aren’t required to enable email logs.
Next, click on the Save Settings button to enable WordPress email logging.

Step 3. View WordPress Email Logs

To view your WordPress email logs, click on WP Mail SMTP » Email Log on the left side of WordPress admin menu. The newest emails will be shown at the top of the list.

If you want to see more details about a particular email, just click on the Subject. This will open a page for that individual email log. It includes details such as the email’s status, which mailer it was sent from, open and click tracking, and more.
Great job! You’ve officially enabled and viewed your WordPress email logs.

Reference Blog
Set Up WordPress Email Logs In Simple Steps

Oldest comments (0)