fixed typo in a send_mail function