Author Topic: Customizing Email Notifications  (Read 2921 times)

rx2

  • Newbie
  • *
  • Posts: 10
    • View Profile
Customizing Email Notifications
« on: January 28, 2009, 09:39:55 pm »
Great application.
We have a need to include the entire content of a task, milestone, or comment in the notification emails that go out. We haven't found anyway to do this within the system and was wondering what .php files we could manipulate to include this content in email notifications.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Customizing Email Notifications
« Reply #1 on: January 29, 2009, 11:31:18 am »
You need to edit files at 'application/views/notifier'. Those mails define the email content for the notifications. In the case of task assignments, for instance, you would have to edit the 'task_assigned.php'. In that file you will notice a variable called $task_assigned. This is an instance of ProjectTask, which is defined in 'application/models/project_tasks/ProjectTask.class.php'. There you can check out how to get the task fields.

rx2

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Customizing Email Notifications
« Reply #2 on: March 14, 2009, 10:45:49 am »
Ok, will have a look. Our dream task email would be something like this:

Subject - {Workspace} - {Task Title}
From: projects@whateveryourdomain.com

Email Body
Workspace: {Workspace Name}
Task: {Task Title}
Assignee: {Assignee}
Subscribers: {Subscribers}
Start Date: {Start Date}
Due Date: {End Date}

Task Description
{Task Description}

{Task Link}

Our dream comment email would be something like this:

Subject - Comment -  {Workspace} - {Task Title}
From: projects@whateveryourdomain.com

Email Body
Workspace: {Workspace Name}
Task: {Task Title}
Assignee: {Assignee}
Subscribers: {Subscribers}
Start Date: {Start Date}
Due Date: {End Date}

Comment
{Comment Description}

{Comment Link}

Nuno Zimas

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: Customizing Email Notifications
« Reply #3 on: July 05, 2010, 11:31:40 am »
As of FengOffice 1.7 stable, this issue is for the most part outstanding.
One should be able to know what a task is about without the need to even open it, just from the subject line of the email message.

When a task is modified or completed, useful info is shown in the subject line.
Newly assigned tasks, however, only display "Task has been assigned to you." and nothing else.
« Last Edit: July 05, 2010, 05:26:15 pm by Nuno Zimas »
OS: GNU/Linux (PCLinuxOS) | Browser: Firefox 3.6.x and Chromium 5.0.x | FengOffice 1.7 RC

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Customizing Email Notifications
« Reply #4 on: July 05, 2010, 02:33:42 pm »
We'll revise it.
Best