Fix can not send mail problem.