refactored the send_mail method