Oops, fixed a typo in: Add the ability to supply a default "from" email address for the "forgot password" feature, instead of using the same address as for the "to".

SVN:trunk[3219]
This commit is contained in:
Denis Flaven
2014-06-18 15:57:25 +00:00
parent a72e15023f
commit 06582cfe35

View File

@@ -249,7 +249,7 @@ class LoginWebPage extends NiceWebPage
{
$sFrom = $sTo;
}
$oEmail->SetRecipientFrom($sTo);
$oEmail->SetRecipientFrom($sFrom);
$oEmail->SetSubject(Dict::S('UI:ResetPwd-EmailSubject'));
$sResetUrl = utils::GetAbsoluteUrlAppRoot().'pages/UI.php?loginop=reset_pwd&auth_user='.urlencode($oUser->Get('login')).'&token='.urlencode($sToken);
$oEmail->SetBody(Dict::Format('UI:ResetPwd-EmailBody', $sResetUrl));