Project

General

Profile

Where are email templates stored?

Added by Patrick Gibson over 15 years ago

We'd like to tweak the New Issue email template slightly (mainly the subject line), but it's not clear to me where the email handling stuff is in the code. Can anyone point me in the right direction?

Also, the link to change notification preferences at the bottom of each new issue email says "http://hostname/my/account" despite me having set the hostname in Administration -> Settings -> General. I'm hoping to fix this as well.

Patrick


Replies (9)

RE: Where are email templates stored? - Added by YA Chris over 15 years ago

Hi Patrick,

Also, the link to change notification preferences at the bottom of each new issue email says "http://hostname/my/account" despite me having set the hostname in Administration -> Settings -> General. I'm hoping to fix this as well.

As the site administrator, follow the "Administration -> Settings" and then click on the "Email notifications" tab. There's a box towards the bottom where you can change this.

RE: Where are email templates stored? - Added by Eric Davis over 15 years ago

Patrick Gibson wrote:

We'd like to tweak the New Issue email template slightly (mainly the subject line), but it's not clear to me where the email handling stuff is in the code. Can anyone point me in the right direction?

To change the actual template files, look in app/views/mailer. Notice there are two templates per email, one html and one plain text.

Eric

RE: Where are email templates stored? - Added by Robert Cerny over 15 years ago

Cool. However this place contains ONLY mail body. Is there a safe place to edit subject line?

RE: Where are email templates stored? - Added by Anonymous over 14 years ago

any solution to change emails subject ?

RE: Where are email templates stored? - Added by Anonymous over 14 years ago

thanks. so, to edit issue subject, we should edit a file in app, and check if this mailer.rb will not be overwritten in next update.

You think there is a way, in a future, to add posibility to define the issue subject format in locales files ? or in email.yml maybe ?
something with "template" should be wonderful:
ex:
  1. define your issues subject template
    issue_subject: "[issue ##{issue.id}] #{issue.subject} - #{issue.project.name} - #{issue.tracker.name}"

Thanks for all

RE: Where are email templates stored? - Added by Anonymous over 9 years ago

I would like to change the email notification subject.
At the moment it gives the information

[project name - Bug number] Issue subject

I would like to have

[Author - Assignee] Issue subject

Can someone help me to change it.

RE: Where are email templates stored? - Added by Mad Geniy about 9 years ago

So, I would like to add a spent time, how I can do this? Thanks.

RE: Where are email templates stored? - Added by Ilya Moskalev almost 9 years ago

Hi, i find file views "reminder.html.erb"
but i can't insert closing date task
any body have idea ?

    (1-9/9)