Skip to content

Update: Send branded templated emails via the mailer (fixes #64)#65

Merged
taylortom merged 1 commit into
masterfrom
new/templated-emails
Jun 20, 2026
Merged

Update: Send branded templated emails via the mailer (fixes #64)#65
taylortom merged 1 commit into
masterfrom
new/templated-emails

Conversation

@taylortom

Copy link
Copy Markdown
Contributor

Fixes #64

Update

  • sendInvite, forgotPasswordHandler, and the password-updated notification in updateUser now build a templated-email content object and send via the mailer's sendTemplated() (emblem + title + body + optional button) instead of assembling raw subject/text/html.
  • createPasswordReset now takes (email, { subject, content }, lifespan), builds the reset URL into the content's button, and calls sendTemplated. Note: this is an internal signature change to createPasswordReset.
  • Email copy now comes from the langpack email_invite_* / email_reset_* / email_passwordupdated_* keys (cgkineo/adapt-authoring-langpack-en#3); app name is read from adapt-authoring-core.
  • Bumps the adapt-authoring-mailer peer dependency to ^1.6.0 (the version that adds sendTemplated).

Breaking

  • createPasswordReset signature changed (see above) — flagging in case any external caller relies on the old (email, subject, text, html, lifespan) form.

Testing

  • npm test — 163 pass (updated invite/reset/password-updated specs; new sendInvite content tests). npx standard clean.

Depends on

@taylortom
taylortom merged commit 8b51770 into master Jun 20, 2026
2 checks passed
@taylortom
taylortom deleted the new/templated-emails branch June 20, 2026 14:08
github-actions Bot pushed a commit that referenced this pull request Jun 20, 2026
# [2.6.0](v2.5.0...v2.6.0) (2026-06-20)

### Update

* Send branded templated emails via the mailer (fixes #64) (#65) ([8b51770](8b51770)), closes [#64](#64) [#65](#65)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use mailer's templated emails for invite / reset / password-updated

1 participant