Code Cleaning split sendmail between sendmail_core
(not related to noalyss) and sendmail which is used by noalyss
This commit is contained in:
parent
35e3de4c7c
commit
47f3b3e943
4 changed files with 154 additions and 99 deletions
|
|
@ -63,7 +63,7 @@ if ($action=="") :
|
|||
</form>
|
||||
<?php
|
||||
elseif ($action=="send_email") :
|
||||
require_once NOALYSS_INCLUDE.'/lib/sendmail.class.php';
|
||||
require_once NOALYSS_INCLUDE.'/lib/sendmail_core.class.php';
|
||||
require_once NOALYSS_INCLUDE.'/class/database.class.php';
|
||||
/*
|
||||
* Check if user exists, if yes save a recover request
|
||||
|
|
@ -108,6 +108,7 @@ elseif ($action=="send_email") :
|
|||
$mail->set_from(ADMIN_WEB);
|
||||
$mail->mailto($user_email);
|
||||
$mail->set_subject("NOALYSS : Réinitialisation de mot de passe");
|
||||
$noalyss_url=NOALYSS_URL;
|
||||
$message=<<<EOF
|
||||
Bonjour,
|
||||
|
||||
|
|
@ -120,7 +121,7 @@ Suivez ce lien pour activer le changement ou ignorer ce message si vous n'êtes
|
|||
Ce lien ne sera actif que 12 heures.
|
||||
|
||||
|
||||
https://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}?recover&id=req&req={$request_id}
|
||||
{$noalyss_url}/index.php?recover&id=req&req={$request_id}
|
||||
|
||||
Merci d'utiliser NOALYSS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue