Changing the Email Address for Email Summaries

This tutorial will show you how to use a PHP snippet to change who your email summaries are sent to.

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.


Before adding the snippet to your site, make sure the Easy WP SMTP plugin is installed and activated on your Wordpress site.

Setup

We recommend that you copy and paste the required snippet below into your site.

Note: If you’re at all unsure of where to add the snippet, please see WPBeginner’s tutorial for details on how to add custom code snippets to WordPress.

On line 7, you’ll need to replace [email protected] with your desired email address.

/* Change the email summary email address  
 * 
 * Original doc: https://easywpsmtp.com/docs/changing-the-email-address-for-email-summaries/
*/

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

You can also specify multiple email addresses that you’d like to send the email summaries to. To do so, add each additional email address to the return statement, separating each with a comma, as seen below:

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

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