Email Notifcation
-
The following is what participates receive in the email notifications:
********************************
The follow task has been updated
#4078 Enlarge logo on mobile
Send by Jamie ([email protected])
Incompleted
? Task link
********************************I would like to send more than the “Title” and the “Link” to the task.
example:
I have a project with a task and a comment.I’d like to have the task and comments in the email.
I tried the following, code I pulled from notify.class.php and pasted it into notify.action.php, but I believe “$point_id” is null therefore I have an empty array:
$point = Point_Class::g()->get( array( 'id' => $point_id, ), true ); $comments = Task_Comment_Class::g()->get( array( 'parent' => $point_id, ), true ); $body .= '<h4>' . __( 'Task ', 'task-manager' ) . '(#' . $task->data['id'] . ') <br /><i>-' . $task->data['title'] . '</i>' . '</h4>'; $body .= '<h4>' . __( 'Point ', 'task-manager' ) . '(#' . $point->data['id'] . ') <br /><i>-' . $point->data[ 'content' ] . '</i>' . '</h4>'; $body .= '<h4>' . __( 'Comment ', 'task-manager' ) . '(#' . $comment_id . ')' . '</h4>'; $body .= '<ul>'; foreach( $comments as $comment ){ if( $comment->data[ 'id' ] == $comment_id ){ $body .= '<li> -> <b> #' . $comment->data[ 'id' ] . '</b> <br /><i>' . $comment->data[ 'content' ] . '</i></li>'; }else{ $body .= '<li> #' . $comment->data[ 'id' ] . ' <br /><i>' . $comment->data[ 'content' ] . '</i></li>'; } } $body .= '</ul>'; $body .= '<ul>'; $body = apply_filters( 'task_manager_notify_send_notification_body', $body, $task, $data );
Any help would be greatly appreciated.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Email Notifcation’ is closed to new replies.