Skip to main content

What You’ll Learn

  • Copying a built-in Pro Reports email template
  • Renaming and editing the template file
  • Customizing the email HTML and footer content
  • Uploading and selecting a custom email template

Extension Add-on - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
The Pro Reports Extension includes built-in email templates. To create a custom email template, start with one of the existing files in the extension, copy it, rename it, edit it, and upload it to your MainWP Dashboard site. Built-in email templates are stored in the /mainwp-pro-reports-extension/templates/emails/ directory. Custom email templates are loaded from /wp-content/uploads/mainwp/report-email-templates/ and become available in the Email template dropdown when you edit a report. Examples of built-in email templates include pro-report-email-default.php, pro-report-email-minimal.php, pro-report-email-modern.php, and pro-report-email-agency.php.

Create a custom email template

1

Download a copy of the MainWP Pro Reports Extension

Download the extension ZIP file from your MainWP Account so you can access the built-in email template files.
2

Locate a built-in email template

Open the /mainwp-pro-reports-extension/templates/emails/ directory and choose one of the existing email templates as your starting point.
3

Copy and rename the template file

Copy the selected PHP file and rename it to a unique filename for your custom template.
4

Edit the copied PHP file

Open the copied file in your code editor and update the HTML and PHP markup as needed. If you want to change the footer contact details, edit the footer section near the end of the template file.
5

Upload the custom template to your Dashboard site

Upload the finished PHP file to the /wp-content/uploads/mainwp/report-email-templates/ directory on your MainWP Dashboard site.
6

Select the custom template in the report

Open or edit your Pro Report, choose the uploaded file from the Email template dropdown, and save the report. The custom template will now be used for that report’s email output.Email Template dropdown in Pro Reports settings
Keep the file extension as .php. Pro Reports renders the selected email template as a PHP file when the email is generated, so invalid PHP or malformed HTML can prevent the template from rendering correctly.