sender = noreply sur invitation groupe et notification chat (fixes #75)

This commit is contained in:
afornerot 2020-02-10 09:57:13 +01:00
parent 62dd70167a
commit 779aac64c5
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class MailController extends Controller
"body_html"=>nl2br($text),
"body_text"=>$text
);
$from = $this->getUser()->getEmail();
$from = $this->getParameter('noreply');
$fromName = $this->getUser()->getFirstname()." ".$this->getUser()->getLastname();
$message = $this->container->get('cadoles.core.service.mail');
$message->sendEmail($template, $mail_params, $to, $from, $fromName);

View File

@ -122,7 +122,7 @@ class WebsocketTopic implements TopicInterface
$to=explode(";",$event["to"]);
unset($to[0]);
$mail->sendEmail("template", $mail_params, $to, $user->getEmail(), $user->getLastname()." ".$user->getFirstname());
$mail->sendEmail("template", $mail_params, $to, $this->container->getParameter('noreply'), $user->getLastname()." ".$user->getFirstname());
$event["message"].="<br><i>Notification envoyée par mail</i>";
}
}