sender = noreply sur invitation groupe et notification chat (fixes #75)
This commit is contained in:
parent
62dd70167a
commit
779aac64c5
|
@ -59,7 +59,7 @@ class MailController extends Controller
|
||||||
"body_html"=>nl2br($text),
|
"body_html"=>nl2br($text),
|
||||||
"body_text"=>$text
|
"body_text"=>$text
|
||||||
);
|
);
|
||||||
$from = $this->getUser()->getEmail();
|
$from = $this->getParameter('noreply');
|
||||||
$fromName = $this->getUser()->getFirstname()." ".$this->getUser()->getLastname();
|
$fromName = $this->getUser()->getFirstname()." ".$this->getUser()->getLastname();
|
||||||
$message = $this->container->get('cadoles.core.service.mail');
|
$message = $this->container->get('cadoles.core.service.mail');
|
||||||
$message->sendEmail($template, $mail_params, $to, $from, $fromName);
|
$message->sendEmail($template, $mail_params, $to, $from, $fromName);
|
||||||
|
|
|
@ -122,7 +122,7 @@ class WebsocketTopic implements TopicInterface
|
||||||
$to=explode(";",$event["to"]);
|
$to=explode(";",$event["to"]);
|
||||||
unset($to[0]);
|
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>";
|
$event["message"].="<br><i>Notification envoyée par mail</i>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue