added email handling for the ldap report