diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 44fffd6a7cc..5137b6f5487 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -138,7 +138,7 @@ $triggersendname = ''; // Disable triggers $paramname = 'id'; $mode = 'emailfortest'; $trackid = ($action == 'send' ? GETPOST('trackid', 'aZ09') : $action); -$sendcontext = ''; +$sendcontext = 'standard'; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; if ($action == 'presend' && GETPOST('trackid', 'alphanohtml') == 'test') { diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 689c49ac76a..1f2374dffdf 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -2601,7 +2601,7 @@ class User extends CommonObject } $trackid = 'use'.$this->id; - $sendcontext = 'password'; + $sendcontext = 'passwordreset'; $mailfile = new CMailFile( $subject, diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index 58458fae5c6..bb99ba49e33 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -157,7 +157,7 @@ if (empty($reshook)) { // Technical failure $message = '