Getting Started with the Email Notifications

You are here:
Back

Table of Content

  1. What are Email Notifications?
  2. Creating the first WordPress email notification trigger
    1. Using the wizard
    2. Using the Trigger Builder
  3. Grouping email notification triggers
  4. The different types of email notification triggers
  5. Built-in WordPess email notifications
  6. Email alert for first time user login
  7. Requesting support and related FAQs

What are Email Notifications?

Email Notifications allow you to be instantly notified via email when important changes happen on your WordPress and WordPress multisite installations. To get a notification, you can either;

Creating Your First WordPress Email Notification Trigger

Email Notifications menu entry
There are two different methods which you can use to create an email notification trigger. You can either use the Wizard, or manually create build your first rule as explained below.

Creating a WordPress Email Notification Using the Wizard

In this example we will use the wizard to create a WordPress email alert so you are alerted via email each time a user logs or out of the WordPress dashboard:

  1. Click on the Email Notifications node in the WP Security Audit Log plugin menu.
  2. Click on Launch Wizard, which is highlighted in the screenshot below.

Launch the email notifications wizard to create the first WordPress email notification

  1. Select the category, in our case User Changes.
  2. Select the type of user activity you want to be alerted about. For this example check 1000 (User Logged in) and 1001 (User logged out) as shown in the below screenshot.

Select the specific WordPress change for which you would like to be alerted

  1. In the last step of the wizard specify the email address to where the emails should be sent and enter a friendly name for the email notification.

Specify the email addresses and name of the alert

  1. Once ready click Save Changes to save the new email notification trigger with all the others.

The email notification trigger is added with all the others

Creating a WordPress Email Notification Using the Notification Trigger Builder

In this example we will setup an email notification to monitor the logins of WordPress users which have an administrator role:

  1. Click on the Email Notifications node in the WP Security Audit Log plugin menu.
  2. In the Email Notification Builder tab click the Add New button to create a new trigger.
  3. Enter a title for the notification, for example User Logged In.
  4. Click the +Add Trigger to add the first trigger.
  5. The first trigger should be ALERT CODE IS EQUAL 1000. (1000 is the Alert ID of a user login. Refer to the complete list of WordPress security alerts for more information and the different Alert IDs).
  6. Click the +Add Trigger to add the second trigger.
  7. The second trigger should be USER ROLE IS EQUAL administrator.
  8. The operand between the two triggers should be AND. And means that both triggers should be matched for the email alert to be triggered. If the operand is set to OR then whenever any of the two triggers is matched, an email notification is sent.
  9. Enter the email address of whom should receive the email notifications in the Email address input field. You can specify multiple email addresses in this section.
  10. Click Add Notification to save the trigger.

That’s it! Very simple and straight forward, as promised! Below is a screenshot of the configured email notification alert.

Configuring a WordPress Email Notification

Grouping of Triggers

As seen in the above example you can use the AND or OR operands to join two triggers together. Though in case you have more than two triggers you can also use the grouping feature to group a number of triggers together. Grouping allow you to create several different types of triggers, such as the below:

  • (TRIGGER 1 AND TRIGGER 2) OR TRIGGER 3
  • TRIGGER 1 AND (TRIGGER 2 OR TRIGGER 3)

For example you can create a trigger to be alerted via email when a user with Administrator role logs in OR when a user with any role logs in between 1800 hours (6PM) and 0800 hours (8AM). In this case you have to build the following trigger:

ALERT CODE IS EQUAL 1000 AND ((USER ROLE IS EQUAL administratorOR (TIME IS AFTER 18:00 AND TIME IS BEFORE 08:00)).

To create the above notification trigger you can follow the below procedure:

  1. First create all the triggers individually one after the other.
  2. From the Grouping drop down menu of the triggers that check the time check select Group with the above trigger so the two are joined together.

The final result should look like the below. Notice that the dark grey background highlights how the triggers are joined together in two different groups.

Building more advanced email notifications triggers with the Grouping functionality

Different Trigger Types

There are several different types of triggers you can use to monitor every possible action you would like. You can setup up a trigger to monitor by:

  • Alert Code
  • Date and Time
  • Username
  • User Role
  • Source IP Address
  • Post Status
  • Post Type
  • Site (in case of multisite)

The Built-In Notifications

If instead of building your own triggers you are looking for simple email notifications you can use the built-in notifications. They can be accessed from the Enable/Disable Built-in Email Notifications tab, as shown in the below screenshot.

Built-in WordPress email notifications

To enable a built-in email notification check it and enter an email address. You can enter multiple email addresses and separate them with a comma.

Email Alert for the First Time User Logs In

As an example of a built-in email notification, which we think should always be enabled is the First time user logs in. Enable this option by checking it and specify an email address, as shown in the below screenshot.

Enable a built-in WordPress Email notifcation

Once such notification is enabled, the first time a user logs in you will be notified via email. This is a very important notification. Just in case your WordPress website is hacked, and the attacker is able to create a new user, you will be notified via email once the new user is used to login to your WordPress blog or website.

Requesting Support

If you encounter any problems or have any queries, we encourage you to contact our support team via email at support@wpwhitesecurity.com. Please include any information you think is useful to help us diagnose your issue, such as information on the WordPress setup, screenshots showing the problem etc. Please also include the license key information in the support email.

We will do our best to answer your query within 24 hours or less, depending on your time zone.

Related FAQs

How can you edit the email templates?