Add custom email templates for specific registrars#3765
Conversation
|
I also see in the PR description that bulk addition, and user_added_to_organization flows weren't tested. Does it mean you are working on it, or that we aren't customizing the templates of those flows yet? |
|
Also, let's add the config to |
… all staff-added account not just org users.
991c146 to
01e9abd
Compare
|
Okay! To help get this to the finish line, I took the liberty of jumping in and extensively refactoring Perma's code for sending activation emails to new users. The plot is:
Testing: I only tested while logged in as an admin user. But, I tested:
And, I did all the above both with and without a custom registrar email configured. And, it LGTM. There are also some new unit tests, designed to give these paths a little exercise, if not exhaustively test everything. Review: Before we merge, I suggest:
I am not sure who to request help out with that. @durkinm2 @teovin what do you think? |

This PR adds support for registrar-specific customization of new user activation emails, to avoid generic suspicious looking emails. It allows registrars to customize email templates, subject prefixes, closing text, and sign-offs via Django settings. I added a new dynamic email template
new_user_custom_registrar.txt, and registrars can be configured insettings.pylike so:Changes:
Testing:
new_user_added_to_org_by_other- tested locallyuser_added_to_organization- needs confirmationuser_added_to_organization_from_bulk_form- needs confirmationLogged in as org user test_org_user@example.com and adding a user, can see the new template being used: