fix send_email() calls