removed useless LDAP authentication function, fixed e-mail sending to contacts without one