WordPress Email Notification for Post Changes and Plugin Updates?

WordPress Email Notification for Post Changes and Plugin Updates?

Have you ever wanted to receive instant email notifications for any changes made to WordPress posts or pages? Do you wish to save troubles in checking wp-admin manually every time when a new update is available?

If this is the case, the following guide will introduce three different methods to set up and get WordPress email notifications – via Email Post Changes plugin, Mail On Update plugin and HTML code. Meanwhile, some common email issues and solutions are also involved as follows.

Method 1 – Using Email Post Changes

With Email Post Changes, you can get to know any post changes via the specified users and email addresses. Besides, those changes can be emailed as a unified diff that will be colorized if your email client supports for HTML emails. To install it, just enter this plugin URL in the browser and then follow the steps introduced in this plugin installation post.

Plugin URL: https://wordpress.org/plugins/email-post-changes/

About Email Post Changes

Once activated, go directly to “Settings” > “Email Post Changes” from the sidebar menu. On this editing screen, check this “Enable” box to start using email notification. Below is the “Users to Email” section where you can notice a list of users on the website. Just select the users you’d like to email, or better yet add “Additional Email Addresses” to receive email alerts for changes.

Enable Email Post Changes

The below option is to select the “Post Type” for receiving email notifications. By default, both the “Posts” and “Pages” are checked, and you can add other custom post types in this field. The last option is to decide whether to send email changes for published posts or only drafts. Once done with your settings, remember to hit “Save Changes” button.

Choose Email Post Type

Note: Till present, you will be emailed with any changes made to WordPress posts or pages, and those changes are usually highlighted with bright colors. It’s pretty easy to check the difference between the current and previous versions of a post/page, and you can use the inbuilt post revisions feature to undo the changes.

Method 2 – Using Mail On Update

If you want to regularly update plugins and themes and meanwhile get new offerings from developer, then this “Mail On Update” plugin is your choice. By using the WordPress built-in update function, this plugin will inform either a single or multiple administrators whenever a new update is available. Its latest version is 5.3.4 that requires WordPress 3.0v.

Plugin URL: https://wordpress.org/plugins/mail-on-update/

About Mail On Update

Upon installation and activation, simply go to “Settings” > “Mail on Update” as below. From here, just select one or multiple email addresses as a recipient. If you don’t select any administrative user, the email will be sent to the default email address that has been set through “Settings” > “General”. It’s possible to send one notification per update.

Select a Email Recipient

It’s at your option to “Filter”, “Blacklist” or “Whitelist” certain plugins. However, it is not recommended to use the filter option, and the default settings can work great.

Use Email Filter Option

Note: To make this plugin working, your WordPress install would be able to send email. In this case, it’s best to use Gmail SMTP server to prevent your WordPress emails from being put into the spam folder of the recipient.

Method 3 – Using HTML Code

The third method is to use the wp_mail() function of WordPress, which requires a bit of coding knowledge. In below, let’s have an overall look at how the wp_mail() function lets you send email by specifying several parameters:

<?php wp_mail( $to, $subject, $headers, $message, $attachments ); ?>

Following are the functions of each item:

  • $to – the email receiver.
  • $subject – the subject of email.
  • $headers – the header of email, usually separated by /h, /n or other newlines.
  • $message – the message of email.
  • $attachments – one file or a series of files to attach.

To receive a simple text email, just modify the first three variables. Below is a quick example for your reference:


$to = '[email protected]';
$subject = 'Tutorial on How to Get wordPress Email Notification';
$message = 'Hi! I hope you can get helpful suggestions on setting up email notifications!';

wp_mail( $to, $subject, $message );


Meanwhile, HTML emails can also be sent by specifying the content type of your email. This is all done via this wp_mail_content_type hook. Here is our example with a little bit additional formatting:

function set_mail_html_content_type() {
return 'html/text';

$to = '[email protected]';
$subject = 'Tutorial on How to Get wordPress Email Notification';
$message = '<h1>Hi!</h1> <p>I hope you can get helpful suggestions on setting up email notifications!</p>';

wp_mail( $to, $subject, $message );
add_filter( 'wp_mail_content_type', 'set_mail_html_content_type' );
remove_filter( 'wp_mail_content_type', 'set_mail_html_content_type' );

Note: As the HTML filter option we’ve added earlier only uses the HTML content type and it may work improperly with WordPress password reset emails, you need to remove it right after each use. Most servers are not made to send hundreds of thousands of emails, thus you still have to talk with the hosting provider or use one of the following solutions that set no limits on the email storage.