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.
Password reset: as sent
Subject: Reset your password
Plain-text version
Reset your password
Someone asked to reset the password for your account. If that was you, choose a new one here:
https://example.test/reset-password/demo-token
If it wasn't, ignore this email: your password won't change.
The link works once, for the next hour.
--
You are receiving this because you have a Foundry account.
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.