The transactional emails every app ends up needing, each with a
plain-text version. Table layout, inline styles and no remote image,
because many mail clients ignore stylesheets and block images. Copy
the files in templates/components/email/ rather than
building new ones.
Invitation: as sent
Subject: Tom Whitaker invited you to Northfield Health Partners
Plain-text version
Join Northfield Health Partners
Tom Whitaker has invited you to join Northfield Health Partners on Foundry as a Viewer.
Accept the invitation:
https://example.test/invite/demo-token
The invitation lasts until 22 October 2026. If you weren't expecting it, you can ignore this email: nothing happens unless you accept.
--
You are receiving this because Tom Whitaker entered this address. You don't have a Foundry account until you accept.
Copying these into your own app
- Copy
_layout.html.twigand_button.html.twig, then each email you need as its.html.twigand.txt.twigpair. - Set
accentColorto your app's own accent hex andappNameto its name. - Send both parts from the same values:
htmlTemplate()andtextTemplate()on oneTemplatedEmail, with onecontext(). - Never reference a remote image, your logo included. The coloured tile in the header is the deliberate substitute.