remove type and redundant code

First I just wanted to remove a typo in the password reset mail but then I stumbled over some very redundant code and extracted it into the new private method `sendPasswordMail(String reason)` which is now used in both methods holding the redundant code before to create the mail body and send the mail after changing the password.