fixes to send_email