Making reminder emails look different to auto notifications

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
AdamN
Posts: 1
Joined: 01 Mar 2005, 01:20

Making reminder emails look different to auto notifications

Post by AdamN »

Hey everyone

Could someone please point me in the direction of the code that determines the subject line of the reminder emails. I am required to change it so that the filters most users have setup to ignore notification emails do not stop reminder emails too.

Thanks,
Adam
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Reminders are sent via email_bug_reminder() in core/email_api.php. This function calls email_build_subject( $p_bug_id ) as the normal emails, with no flag indicating that it is a reminder. The easiest thing to do would be to post-process the subject by adding a "Reminder: " prefix.

The ideal solution is to have a flag indicating the type of the email being sent, and to have a custom function that you can override, so that you don't have to change the distribution source and hence merge your changes when you upgrade to the next version of Mantis.

With regards to the idea solution, feel free to submit a feature request to Mantis bugtracker.

Regards,
Victor
http://www.futureware.biz
Post Reply