fix send mail bug