fix send_mail bug