add reply-to address and sender-name configuration to panel, fixes #76

This commit is contained in:
Michael Kaufmann (d00p)
2010-03-21 20:21:29 +00:00
parent db74c99098
commit 080eeb29ec
6 changed files with 50 additions and 2 deletions

View File

@@ -416,6 +416,10 @@ if($page == '')
*/
$mail = new PHPMailer();
$mail->SetFrom($settings['panel']['adminmail'], 'Froxlor Administrator');
// set return-to address and custom sender-name, see #76
$mail->SetFrom($settings['panel']['adminmail'], $settings['panel']['adminmail_defname']);
if ($settings['panel']['adminmail_return'] != '') {
$mail->AddReplyTo($settings['panel']['adminmail_return'], $settings['panel']['adminmail_defname']);
}
?>