Opened 9 years ago

Last modified 5 years ago

#11278 new enhancement

Allow for email template files

Reported by: anonymous Owned by: ejucovy
Priority: normal Component: WorkflowNotificationPlugin
Severity: normal Keywords:
Cc: ntmlod Trac Release: 0.12


I would like to see the ability to specify template files for .body similar to this:

notify_reporter_accepted.body = Template[notify_reporter_accepted.txt]

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by ethan.jucovy@…

I'd love to have this feature.

I think I would prefer to spell it more like:

notify_reporter_accepted.body = notify_reporter_accepted.txt
notify_reporter_accepted.body.source = file  # either "file" or "string" (the default)

The code would be simpler that way, and would also leave room for future expansion (e.g. getting templates from wiki page contents or files in version control)

I think a global setting would also be useful:

default_template_source = file 

I'm not sure when I'll have a chance to implement this myself, but a patch would be very welcome.

comment:2 Changed 5 years ago by ntmlod

Cc: ntmlod added

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain ejucovy.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.