Using Email Layouts

Last updated on August 03, 2024.

This document shows you how to provide a layout for your Email Notifications.

Prerequisites

To follow this tutorial, it is necessary to have a good grasp of layouts and notifications and the ability to create an email notification since email layouts are similar to page layouts.

Steps

Using email layouts is a three-step process:

  • Step 1: Create an email layout file
  • Step 2: Edit the email layout file
  • Step 3: Use the layout in an email

Step 1: Create an email layout file

The default layout file for all emails should be located in the directory. Create a file named .

Step 2: Edit the email layout file

Add the following to your email layout file :

Where injects the body defined in the Email Notification into the layout. Without this part, you would be sending a layout without actual content.

Step 3: Use the layout in an email

To use the newly created layout in your Email Notification, set :

Next Steps

Congratulations! You know how to use email layouts. Now you can learn about including attachments: Adding Attachments to an Email Notification

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.