Mailhub
  • Welcome
  • Introduction
  • Get your API key
  • Connect your domain
  • Create layouts & pages
  • Send email
  • Internationalization
  • Editor
    • Insert page into a layout
    • Dynamic Expressions
Powered by GitBook
On this page
  • Layout
  • Include page content within layout
  • Pages

Create layouts & pages

PreviousConnect your domainNextSend email

Last updated 10 months ago

Layouts and pages are a central feature of Mailhub. They help you avoid dealing with complex templates when sending emails. You can create and edit your templates here.

Layout

Layouts are used as parent components for a page. They can serve as a 'template' for email designs. This is especially useful if you have multiple designs based on user type, platforms, or other criteria.

Include page content within layout

To determine where the layout content will be displayed, you can use the <content /> tag.

Pages

Pages, on the other hand, are used as email templates. They function in the same way as layouts and are designed to be sent via HTTP requests.

See example here