mybb/mybb — pull request #1732 by NotoriousPyro (2014-12-30 16:09:35+00:00)
Title: Update class_mailhandler.php

When a user changes their password, an email is received from the board administrator. This "functionality" exposes the administrator's email to anyone who registers.

Thus, this change allows a person to set ReturnEmail to donotreply@domain.com and AdminEmail to adminemail@domain.com, the emails from Contact Us, etc will still work fine and be delivered to the administrator, yet any other emails not specifically defined as From anyone will be sent via donotreply@domain.com.

For example, the original file does this:
* A user uses the Contact Us link, the email is delivered to AdminEmail received from the user's own email address.
* A user registers, the email is delivered to the user's own email address, received from **AdminEmail**.

These changes do:
* A user uses the Contact Us link, the email is delivered to AdminEmail received from the user's own email address.
* A user registers, the email is delivered to the user's own Email Address, received from **ReturnEmail**.