Status Update - notification email

Answered Danail S. 7 years ago

Where i can find the function for sending notification email when the status is updated?

Replies (3)

photo
15

Hello, Danail,

in order to send notification email when status is updated, please go to Administration - Automation&Notifications and create trigger with event "Status is Updated", required conditions and action Notify. You can send template "Change Object Status" that could be found in Administration - Email - Email Templates or create your custom template.

More information about triggers could be found in the article.

Let us know if you have more questions.

This comment is in trash! Restore
photo
14

Hello, Liza,

I need the php function to use it on my custom integration.

This comment is in trash! Restore
photo
15

Hello Danail,

You can use the following code as example:

// $recipient is instance of System_Model_User;
// $object is instance of System_Model_Object;
$keys = $object->getEmailValues($recipient);
$keys['previous_status'] = '';
$keys['previous_status_tpl'] = '';
Resources_Service_ApplicationMailer::send($recipient, 'change_object_status', 'resources', $keys, $object);

Let us know if you have more questions.

This comment is in trash! Restore
Leave a Comment
 
Attach a file