changed email_name -> email_id in debug code, as per issue #2