1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 14:57:27 +02:00

Configuration du Dockerfile et support de l'envoi de mails

This commit is contained in:
galaxyoyo
2019-09-08 23:10:59 +02:00
parent 722fad4e6f
commit fbabdff69c
4 changed files with 52 additions and 5 deletions

View File

@ -9,8 +9,8 @@ class Mailer
$content = preg_replace("#{URL_BASE}#", $URL_BASE, $content);
$content = preg_replace("#{YEAR}#", $YEAR, $content);
$headers = "From: " . $from . "@" . $MAIL_DOMAIN . "\r\n";
$headers .= "Reply-To: contact@" . $MAIL_DOMAIN . "\r\n";
$headers = "From: \"Contact TFJM²\" <" . $from . "@" . $MAIL_DOMAIN . ">\r\n";
$headers .= "Reply-To: \"Contact TFJM²\" <contact@" . $MAIL_DOMAIN . ">\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
mail($email, $subject, $content, $headers);