Mailer/Mailer.php
public function sendNewTaskEmailMessage(
        Task $task,
        UserInterface $createUser,
        UserInterface $assignUser,
        TypeInterface $type)
    {
        // $createUser, $recipientUser, $task, $link
        $template = $this->parameters['new_task']['template'];
        $from = $this->parameters['new_task']['from_email'];

        $text = $type->getText($task);
        $url = $type->getLink($task);

        $content = $this->templating->render(
            $template,
            [
                'createUser' => $createUser,
                'assignUser' => $assignUser,
                'task' => $task,
                'text' => $text,
                'url' => $url,
            ]
        );
        $this->sendEmailMessage($content, $from, $assignUser->getEmail());
    }
public function sendNewTaskEmailMessage(
        Task $task,
        UserInterface $createUser,
        UserInterface $assignUser,
        TypeInterface $type)
    {
        // $createUser, $recipientUser, $task, $link
        $template = $this->parameters['new_task']['template'];
        $from = $this->parameters['new_task']['from_email'];

        $text = $type->getText($task);
        $url = $type->getLink($task);

        $content = $this->templating->render(
            $template,
            [
                'createUser' => $createUser,
                'assignUser' => $assignUser,
                'task' => $task,
                'text' => $text,
                'url' => $url,
            ]
        );
        $this->sendEmailMessage($content, $from, $assignUser->getEmail());
    }
public function sendNewTaskEmailMessage ( Task $ task , UserInterface $ createUser , UserInterface $ assignUser , TypeInterface $ type ) { // $createUser, $recipientUser, $task, $link $ template = $ this -> parameters [ 'new_task' ] [ 'template' ] ; $ from = $ this -> parameters [ 'new_task' ] [ 'from_email' ] ; $ text = $ type -> getText ( $ task ) ; $ url = $ type -> getLink ( $ task ) ; $ content = $ this -> templating -> render ( $ template , [ 'createUser' => $ createUser , 'assignUser' => $ assignUser , 'task' => $ task , 'text' => $ text , 'url' => $ url , ] ) ; $ this -> sendEmailMessage ( $ content , $ from , $ assignUser -> getEmail ( ) ) ; }
Send a new task email.

@param Task          $task
@param UserInterface $createUser
@param UserInterface $assignUser
@param TypeInterface $type
Send a new task email .