Set up override for subject lines for user invite & password recovery mails #20732
Replies: 3 comments
-
I'm tagging the people who previously created discussions on the subject as well to see if there's still interest on their side: |
Beta Was this translation helpful? Give feedback.
-
This old PR #17728 was closed due to no "Heya! Thank you for your contribution. Unfortunately, we can't accept PRs for improvements/features that don't have a prior accepted Discussion and associated Issue" I would say this 3 month old discussion and associated issue are more than enough to go ahead with the change, fairly low impact in terms of implementation. If someone else needs to open a new PR, I can do this with the changes. |
Beta Was this translation helpful? Give feedback.
-
What is the status of this? |
Beta Was this translation helpful? Give feedback.
-
Summary
Hi guys,
Directus has a great system which provides user invites & password recovery features straight out of the box.
However the subjects for both mails are not modifiable currently.
There has been a demand from multiple users to set up a custom subject for the inviteUser & requestPasswordReset methods.
See:
There is already a system set up in the requests to pass a subject in the request to the API, would it be possible to use it while the API translation is being set up ?
Basic Example
For the user invite, a call to the invite API could simply be modified from this:
to:
Motivation
Customization:
Not the main motivator but developpers may want to use the site's name, etc or customize the e-mail.
I18n:
The issue is a main issue for international users. The e-mails sent by these two systems have set titles in English, making internationalization impossible for the emails.
Here's a dramatic recreation:
Detailed Design
As Jason mentioned in his previous discussion the system already exists and just needs to be implemented.
Requirements List
Must Have:
Custom email subjects for new user invites
Drawbacks
None.
The subject can be treated as an optional field, allowing for backwards compatibility. The existing implementation of the user invite feature can remain unchanged.
Alternatives
Mentioned earlier here #17485
The idea was to set up a translation for the API which is a larger project. If there is a status on this, I would gladly have a look :)
Adoption Strategy
No impact on other project as far as I know.
Documentation should be updated to explain the subject can be customized, otherwise not much
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions