LDAP works by connecting to a directory service, such as Microsoft Active Directory, to authenticate and retrieve user information. When an email marketing system needs to send an email, it can query the LDAP server to get user details and verify permissions. This ensures that emails are sent to the right recipients and helps in maintaining up-to-date contact lists.