Feng Forum

Support => How To's => : jimmod March 10, 2010, 08:38:46 AM

: Add Subject Prefix at Email Notification
: jimmod 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 :)
: Re: Add Subject Prefix at Email Notification
: rodrigl2 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
: Re: Add Subject Prefix at Email Notification
: rodrigl2 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

: Re: Add Subject Prefix at Email Notification
: Markus March 03, 2011, 01:37:51 PM
Hi rodrigl2,

just add one line in

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

from
:
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
:
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
: Re: Add Subject Prefix at Email Notification
: rodrigl2 March 03, 2011, 02:36:34 PM
Perfect !!  it is working very good

  Thanks a lot !

take care