Fixed send mail bug