50,6 → 50,8 |
fclose($file_conf); |
$whiteDomain = explode(" ", strtolower(trim($conf['MAIL_WHITEDOMAIN']))); |
$adminMail = $conf['MAIL_ADMIN']; |
$typeMail = $conf['MAIL_TYPE']; |
$fromMail = $conf['MAIL_ADDR']; |
|
/**************************************** |
* Choice of language * |
309,7 → 311,11 |
$domain = $conf["DOMAIN"]; |
$hostname = $conf["HOSTNAME"]; |
$to = $Fmail; |
$from = "administrator"; |
if ($typeMail == "3") { // using an existing @mail |
$from = $fromMail; } |
else { |
$from = "administrator"; |
} |
$subject = $l_subject; |
$message = "<!DOCTYPE html> |
<html> |
333,7 → 339,8 |
$header .= "Content-type: text/html; charset=utf-8\n"; |
if(mail($to, $subject, $message, $header)){ |
echo "<center>success : <b>Vous y êtes presque ! $l_user '$login' $l_created</b></center><br />"; |
echo "<center>success : <b>Un email contenant vos informations de connexion vient de vous être envoyé.</b></center><br />"; |
echo "<center>success : <b>Un email contenant vos informations de connexion vient d'être envoyé.</b></center><br />"; |
echo "Info : to = $to ; header = $header<br />"; |
// Creation of the email for the administrator (if enabled) |
if (!empty($adminMail)){ |
$to = $adminMail; |