• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

E-mail template macros

Scheduled Pinned Locked Moved Unsolved
Q&A
2
2
423
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    zaalbarxx
    last edited by 31 May 2024, 10:36

    Hello!
    Is it possible to use macros in e-mail templates ? I'd like to create some shared HTML template for e-mails which then could be reused in e-mails, similar to how theme templates work, I've tried putting some new macro to theme's helpers.ftl, but email parser seem to not load this file during e-mail generation. Is it possible to somehow abstract the logic for e-mails or I'd have to duplicate the HTML for each email/use some custom scripting etc ?
    Cheers

    M 1 Reply Last reply 7 Jun 2024, 00:08 Reply Quote 0
    • M
      mark.robustelli @zaalbarxx
      last edited by 7 Jun 2024, 00:08

      @zaalbarxx Currently, FusionAuth does not support the use of macros for reusing content across different email templates. There is an
      open issue on GitHub discussing this feature. I suggest you up vote it.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post