Changing the Email Template

You will be sending emails to your users, from your server. This means you can edit the email template to your liking. Here we will explain how to override the HTML template, and use your own logo. The unbranded version of the email will be sent to your users.

Overriding the default E-mail 2FA template

– Create a new folder in the /wp-content/ directory of your WordPress site, rename the folder to custom-email-templates

Really Simple Security - Email 2FA Template override (folder structure step 1)

– Navigate to /wp-content/plugins/really-simple-ssl-pro/mailer/templates/, and create a copy of the email-unbranded.html file that’s located here.

Really Simple Security - Email 2FA Template override (duplicating/copying the default template)

– Move the newly created copy of email-unbranded.html to the /wp-content/custom-email-templates/ folder (the one you created in the first step), and rename the file to custom-email-unbranded.html

Really Simple Security - Email 2FA Template override (creating the custom template)

 

The custom-email-unbranded.html file in the /wp-content/custom-email-templates/ is your new e-mail template, which can be customized as desired.

For instance, you can modify the logo by changing the URL of the image https://downloads.really-simple-security.com/images/security.svg (as highlighted in the screenshot below), to the URL of your desired logo.

Really Simple Security - Changing the default image URL in the Email 2FA template

– Add the following code snippet as a new .php file in the /wp-content/mu-plugins/ folder of the site (we’ve called it rsssl-template-override.php in the below screenshot). This overrides the standard email 2FA template with your new, custom template.

Really Simple Security - Uploading the MU Plugin to use the new custom email template

Simple and Performant Security.
Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate generation.