Find contact by its email

Hi,

is there a simple way to find a contact by its email?
the only way which seems doable is first finding an email in the emails, and then query the email_addr_bean_rel with the module name and the email id.
This would get complicated if the emails table contains multiple records with the same email value.

Isn’t there something more simple? like $contactBean->findByEmail() ?
Another way would be with a custom query, but I would expect something more native, I guess I am not the first one who needs it :slight_smile:

I found a way, which unfortunately does not work:
$contactBean->get_contact_id_by_email($email);

but here is an unresolved issue containing a way how to fix it: