Add custom branding to confirmation emails - #2285
Conversation
9ee3b9b to
6d8ebb8
Compare
Move the banner markup from the mailer layout into a partial unchanged, so a custom branded banner can be swapped in for confirmation emails without touching the other mailers.
Emails need absolute URLs for branding assets, which are served from the public directory using relative paths. Deployed environments must set SETTINGS__FORMS_RUNNER__BASE_URL. The setting name matches the base_url settings for the other apps.
Forms with a configured brand now send confirmation emails with the organisation's logo, colours and website link in the banner instead of GOV.UK branding, matching the branded web pages. The mailer opts in by setting @Branding, so emails to form processors keep the GOV.UK banner even for branded forms.
6d8ebb8 to
b3819df
Compare
|
🎉 A review copy of this PR has been deployed! It is made of up two components It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready For the sign in details and more information, see the review apps wiki page. |
stephencdaly
left a comment
There was a problem hiding this comment.
The changes look sensible. Have you tested this in all the different Outlook versions? https://github.com/govuk-forms/forms-team/wiki/Testing-submission-email-changes
I've tested it on Outlook online. I'll will go ahead an merge this, and fix forward if it breaks other clients - as the feature is not being used in prod atm |
Forms with a configured brand now send confirmation emails with the organisation's logo, colours and website link in the banner instead of GOV.UK branding, matching the branded web pages. This applies to both variants, including emails with a copy of the user's answers.
Only the confirmation emails, not submission emails to form processors. They keep the GOV.UK banner, and forms with no brand or an unrecognised brand ID fall back to it too.
Email clients need absolute image URLs, so there's a new
forms_runner.base_urlsetting for this app's public URL.Added here:
govuk-forms/forms-deploy#2239