ME: added the send_email flag