Skip to main content

What You’ll Learn

  • Creating custom email templates for Pro Reports
  • Replacing dynamic logo code with a static URL
  • Uploading templates to the correct directory
  • Selecting custom email templates in reports

Extension Add-on - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
If you wish to use a different logo in the email body compared to the logo in the attached PDF file, you can create a custom email template to achieve that. We will use one of the built-in templates as a starting point for the new custom email report.
1

Locate the default email template file

Locate one of the default email templates in the /mainwp-pro-reports-extension/templates/emails/ path. NOTE: You can download the MainWP Pro Reports Extension from your MainWP Account, or you can navigate to this path using FTP client.
2

Copy the PHP file of one of the templates (in this example we will be using pro-report-email-modern.php) and rename it to a new desired filename

Copy the PHP file of one of the templates (in this example we will be using pro-report-email-modern.php) and rename it to a new desired filename
3

Open the new PHP file in your favorite code editor

Open the new PHP file in your favorite code editor
  1. Locate these three lines Original Pro Reports logo code showing dynamic image path
  2. And replace them with just one line with a hardcoded URL from your MainWP Dashboard that contains the desired logo Modified code with hardcoded image URL for email-only logo
4

Once you are finished with the customization and the template is ready, upload the PHP file the /wp-content/uploads/mainwp/report-email-templates/ directory on your Dashboard site

Once you are finished with the customization and the template is ready, upload the PHP file the /wp-content/uploads/mainwp/report-email-templates/ directory on your Dashboard site
5

Once uploaded, the template will be available in the Email template dropdown

Once uploaded, the template will be available in the Email template dropdown Email Template dropdown in Pro Reports settings