MyBB Community Forums

Full Version: Problem with emailsubject at changeemail
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After changing the e-mail account in the User-CP the subject of the email is
Quote:Change of Email at {1}

It can be changed by editing the following lines at usercp.php

$userhandler->update_user();
// Email requires no activation
$mail_message = $lang->sprintf($lang->email_changeemail_noactivation, $mybb->user['username'], $mybb->settings['bbname'], $mybb->user['email'], $mybb->get_input('email'), $mybb->settings['bburl']);
my_mail($mybb->get_input('email'), $lang->emailsubject_changeemail, $mail_message);
$plugins->run_hooks("usercp_do_email_changed");
redirect("usercp.php?action=email", $lang->redirect_emailupdated);
and change them to
$userhandler->update_user();
// Email requires no activation
$mail_message = $lang->sprintf($lang->email_changeemail_noactivation, $mybb->user['username'], $mybb->settings['bbname'], $mybb->user['email'], $mybb->get_input('email'), $mybb->settings['bburl']);
$lang->emailsubject_changeemail = $lang->sprintf($lang->emailsubject_changeemail, $mybb->settings['bbname']);
my_mail($mybb->get_input('email'), $lang->emailsubject_changeemail, $mail_message);
$plugins->run_hooks("usercp_do_email_changed");
redirect("usercp.php?action=email", $lang->redirect_emailupdated);
You're correct - the title is wrong.

Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/1377

Thanks for contributing to MyBB!

Regards,
The MyBB Group