Bug #5486
openResetPassword e-mail = SPAM
0%
Description
The e-mails send by the default mail function when resetting password(s) ar labeled as SPAM. This is because no sender is set.
The e-mail for the platformadmin is set, even a 'noreply' e-mail is set. But apparently these settings are not used for the e-mailreset.
so
So I searched the code and found there is not sender (from) set in the e-mailing function for these e-mails... so temporarily changed it like this:
If a noreply e-mail is set, this e-mail will be used as sender. If not the platformadmin e-mail will be used.
/user/php/lib/user_manager/component/reset_password.class.php.
@
Private function creat_new_password($user):
{
.
.
$mail_body = implode("\n", $mail_body);
return $mail->send();$from['email'] = (PlatformSetting::get('no_reply_email') != '') ? PlatformSetting::get('no_reply_email') : PlatformSetting::get('administrator_email');
$mail = Mail :: factory($mail_subject, $mail_body, $user->get_email(), $from);
}
@
@
Private function send_reset_link($user):
{
.
.
$mail_body = implode("\n", $mail_body);
return $mail->send();$from['email'] = (PlatformSetting::get('no_reply_email') != '') ? PlatformSetting::get('no_reply_email') : PlatformSetting::get('administrator_email');
$mail = Mail :: factory($mail_subject, $mail_body, $user->get_email(), $from);
}
@
/user/php/lib/user_manager/component/multi_password_resetter.class.php.
@
function run()
{
.
.
$mail->send();$from['email'] = (PlatformSetting::get('no_reply_email') != '') ? PlatformSetting::get('no_reply_email') : PlatformSetting::get('administrator_email');
$mail = Mail :: factory($mail_subject, $mail_body, $user->get_email(), $from);
.
.
}
@
Updated by Parcifal Aertssen almost 11 years ago
- Status changed from New to Needs testing
This is now fixed on stable and dev