summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlupo49 <post@lupo49.de>2011-11-12 16:45:50 +0100
committerlupo49 <post@lupo49.de>2011-11-12 16:45:50 +0100
commit9a2d7c4ee07ce8e79be59e4be35e75462fd67d38 (patch)
tree7e5e2c6dde27484cdf3d1bc8ddd31d4803f7bbe0
parent879136cf3af1a367953e0d25ab57608565a626c7 (diff)
downloadrpg-9a2d7c4ee07ce8e79be59e4be35e75462fd67d38.tar.gz
rpg-9a2d7c4ee07ce8e79be59e4be35e75462fd67d38.tar.bz2
Use mailprefix also for registration and resend password notification mails (FS#2366)
-rw-r--r--inc/auth.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php
index eff984b36..e0f58e5f2 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -673,8 +673,14 @@ function auth_sendPassword($user,$password){
$text = str_replace('@PASSWORD@',$password,$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'].'>',
- $lang['regpwmail'],
+ $subject,
$text,
$conf['mailfrom']);
}
@@ -912,8 +918,14 @@ function act_resendpwd(){
$text = str_replace('@TITLE@',$conf['title'],$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'].'>',
- $lang['regpwmail'],
+ $subject,
$text,
$conf['mailfrom'])){
msg($lang['resendpwdconfirm'],1);