Email function fix

Fix the problem that password does not show in the content of the email.