Author Topic: Add Subject Prefix at Email Notification  (Read 3180 times)

jimmod

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Add Subject Prefix at Email Notification
« on: March 10, 2010, 08:38:46 am »
Hello,

I just started to test this tool for managing my team.
Many thanks for the developers for the great application.

What I want to asked is about adding subject prefix such as '[FengOffice] ' so the user can easily filter the emails.

What I do right now is I edit the file ./application/models/notifier/Notifier.class.php
Is there's any original configuration to do this?

Thanks in advance :)

rodrigl2

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Add Subject Prefix at Email Notification
« Reply #1 on: February 22, 2011, 11:53:16 am »
hi
I have the same need !
 Did you solve the isse ?

Could you please share with me the workarround ?

Thanks in advance

rodrigl2

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Add Subject Prefix at Email Notification
« Reply #2 on: March 02, 2011, 02:52:14 pm »
hi
I have the same need !
 Did you solve the isse ?

Could you please share with me the workarround ?

Thanks in advance


Markus

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: Add Subject Prefix at Email Notification
« Reply #3 on: March 03, 2011, 01:37:51 pm »
Hi rodrigl2,

just add one line in

ROOT\application\models\notifier\Notifier.class.php->function queueEmail

from
Code: [Select]
static function queueEmail($to, $from, $subject, $body = false, $type = 'text/html', $encoding = '8bit') {
$cron = CronEvents::getByName('send_notifications_through_cron');
if ($cron instanceof CronEvent && $cron->getEnabled()) {

to
Code: [Select]
static function queueEmail($to, $from, $subject, $body = false, $type = 'text/html', $encoding = '8bit') {
$cron = CronEvents::getByName('send_notifications_through_cron');
$subject = '[yourPrefix]' . $subject;
if ($cron instanceof CronEvent && $cron->getEnabled()) {

and all your notification mails will have it.

cheers
markus
« Last Edit: March 03, 2011, 01:45:19 pm by Markus »

rodrigl2

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Add Subject Prefix at Email Notification
« Reply #4 on: March 03, 2011, 02:36:34 pm »
Perfect !!  it is working very good

  Thanks a lot !

take care