Fix bug: can not send mail