Allow mailer to change default sender name #11042
Replies: 4 comments 5 replies
-
Just came across this after trying to figure out why "Directus" was always being prepended to I agree with the poster this could be a nice feature. But I think it would at least be nice to document under https://docs.directus.io/self-hosted/config-options.html#email that the convention of designating the sender name and address together in "from email" is being overridden. For example, when I tried to set
Had to scratch my head for a bit until finding this. |
Beta Was this translation helpful? Give feedback.
-
Heya! Thanks for opening this feature request! This feature request has received over 15 votes from the community. This means we'll move this feature request to the Under Review state! The Core team will schedule a meeting to review this request as soon as possible. The discussion will then be approved or denied. You may or may not be invited to join this meeting with the core team. For more information, see our Feature Request Process. |
Beta Was this translation helpful? Give feedback.
-
@mattiaz9 In fact, for some reason,
has to be
(without the |
Beta Was this translation helpful? Give feedback.
-
We would also need a possibility to override the from name in MailService's I would suggest to refine the code as follows. If only a plain email address is passed, it will be combined with the project name (current behavior). Otherwise, it will simply use the formatted name that is passed. This would allow for using both plain and formatted addresses in both the I think this would provide most flexibility for future use-cases and is also fully downwards compatible.
I would have a feature branch ready and could start a pull request. However, there is currently no issue open. |
Beta Was this translation helpful? Give feedback.
-
Right now the name of the sender is the project name which is constraining. If someone has multi-domain project or simply wants to send mails for different scopes (eg: marketing campaign, direct contact ...) he can't change the name.
That would be a simple change of the
mail/index.ts
file from:to:
Beta Was this translation helpful? Give feedback.
All reactions