Skip to content
Snippets Groups Projects
Commit 9a2d7c4e authored by lupo49's avatar lupo49
Browse files

Use mailprefix also for registration and resend password notification mails (FS#2366)

parent 879136cf
No related branches found
No related tags found
No related merge requests found
...@@ -673,8 +673,14 @@ function auth_sendPassword($user,$password){ ...@@ -673,8 +673,14 @@ function auth_sendPassword($user,$password){
$text = str_replace('@PASSWORD@',$password,$text); $text = str_replace('@PASSWORD@',$password,$text);
$text = str_replace('@TITLE@',$conf['title'],$text); $text = str_replace('@TITLE@',$conf['title'],$text);
if(empty($conf['mailprefix'])) {
$subject = $lang['regpwmail'];
} else {
$subject = '['.$conf['mailprefix'].'] '.$lang['regpwmail'];
}
return mail_send($userinfo['name'].' <'.$userinfo['mail'].'>', return mail_send($userinfo['name'].' <'.$userinfo['mail'].'>',
$lang['regpwmail'], $subject,
$text, $text,
$conf['mailfrom']); $conf['mailfrom']);
} }
...@@ -912,8 +918,14 @@ function act_resendpwd(){ ...@@ -912,8 +918,14 @@ function act_resendpwd(){
$text = str_replace('@TITLE@',$conf['title'],$text); $text = str_replace('@TITLE@',$conf['title'],$text);
$text = str_replace('@CONFIRM@',$url,$text); $text = str_replace('@CONFIRM@',$url,$text);
if(empty($conf['mailprefix'])) {
$subject = $lang['regpwmail'];
} else {
$subject = '['.$conf['mailprefix'].'] '.$lang['regpwmail'];
}
if(mail_send($userinfo['name'].' <'.$userinfo['mail'].'>', if(mail_send($userinfo['name'].' <'.$userinfo['mail'].'>',
$lang['regpwmail'], $subject,
$text, $text,
$conf['mailfrom'])){ $conf['mailfrom'])){
msg($lang['resendpwdconfirm'],1); msg($lang['resendpwdconfirm'],1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment