Added send_mail function