JavaScript disabled You need to activate JavaScript in order to use OpenProject! Learn more
Added by Phason Electronics over 7 years ago
I want to customize the email notifications, but cannot find where to do it, or which files to modify. Can somebody point me in the right direction?
Thanks, Chris
Hello, I have the same problem. I would liket to edit the content of the emails which are sent, like the categories. Can somebody help us? Thanks, Catherine
Hi,
the emails can not be customized via the UI (except from the footer). If one would want to adapt the notifications in the code https://github.com/opf/openproject/blob/dev/app/views/user_mailer/_issue_details.html.erb and https://github.com/opf/openproject/blob/dev/app/views/user_mailer generally is a good place to start. However, I would refrain from doing it in one particular installation as every subsequent update might remove the customization again.
The most stable way would be to issue a PR which introduces selecting the attributes to be sent.
Regards
Jens
Hello Jens,
Thank you for your very quick answer, I’m really happy.
Unfortunately I’m not a developer and I can’t modify the code myself.
Should I put it in the wish list in the openProject community or what would be the best way?
Thanks, Catherine
thanks for the link to the views. Are there plans on making those templates customizable via the admin Panel? in which Controlle/middleware/modeL
would I need to add such an option?
Best,
Andreas
Hi Andreas,
there are thoughts and discussions about the feature but no concrete plans, yet.
If you plan to step up to implement it, please open up a work package or a PR on github so we can talk about the specifics.
Hi Jens,
thanks for the quick reply. I opened a work package https://community.openproject.com/projects/openproject/work_packages/29570/ and opened a pull request https://github.com/opf/openproject/pull/7051 for further discussion on how this could be implemented and which restriction would apply. While looking through the app-folder I realized that there would be substantial and conceptional change in how the notification-handler works.
Replies (6)
Hello,
I have the same problem. I would liket to edit the content of the emails which are sent, like the categories. Can somebody help us?
Thanks,
Catherine
Hi,
the emails can not be customized via the UI (except from the footer). If one would want to adapt the notifications in the code https://github.com/opf/openproject/blob/dev/app/views/user_mailer/_issue_details.html.erb and https://github.com/opf/openproject/blob/dev/app/views/user_mailer generally is a good place to start. However, I would refrain from doing it in one particular installation as every subsequent update might remove the customization again.
The most stable way would be to issue a PR which introduces selecting the attributes to be sent.
Regards
Jens
Hello Jens,
Thank you for your very quick answer, I’m really happy.
Unfortunately I’m not a developer and I can’t modify the code myself.
Should I put it in the wish list in the openProject community or what would be the best way?
Thanks,
Catherine
Hi,
thanks for the link to the views. Are there plans on making those templates customizable via the admin Panel? in which Controlle/middleware/modeL
would I need to add such an option?
Best,
Andreas
Hi Andreas,
there are thoughts and discussions about the feature but no concrete plans, yet.
If you plan to step up to implement it, please open up a work package or a PR on github so we can talk about the specifics.
Regards
Jens
Hi Jens,
thanks for the quick reply. I opened a work package https://community.openproject.com/projects/openproject/work_packages/29570/ and opened a pull request https://github.com/opf/openproject/pull/7051 for further discussion on how this could be implemented and which restriction would apply. While looking through the app-folder I realized that there would be substantial and conceptional change in how the notification-handler works.
Best,
Andreas