Changing the Email Summary Email Address

Heads up! This article contains PHP code and is intended for developers. We offer this code as a courtesy but don’t provide support for code customizations or 3rd party development.

Overview

Would you like to change the recipient of the weekly email summaries sent by WP Mail SMTP? The email summary shows how many emails your site sent that week and is sent to the site admin’s email address by default.

In this tutorial, we’ll show you how to use a PHP snippet to change who your email summaries are sent to.

Note: Be sure to install and activate the WP Mail SMTP plugin on your site before adding the code snippet provided in this tutorial.

Setup

We recommend that you copy and paste the required snippet below into a new WPCode snippet. WPCode makes it easy and safe to run code snippets on your site.

For help with adding snippets to your site, please see our tutorial on adding code snippets using the WPCode plugin.

Copy and paste the snippet below to your site. On line 7, you’ll need to replace [email protected] with your desired email address.

You can also specify more email addresses that you would like to send the email summaries to. Simply add additional email addresses separated by a comma, as seen below:

add_filter( 'wp_mail_smtp_reports_emails_summary_send_to', function ( $email ) {
return '[email protected], [email protected]'; } );

That’s it! Now you know how to successfully change the recipient of the weekly email summaries sent by your site.

Next, want to explore more ways to customize your WP Mail SMTP setup? Be sure to look at our other code snippets for more customization options.