Assign Contact to Custom Module Entry

Assign Contact to Custom Module Entry

Hey ;)

I want to assign a contact automatically to our custom module. The entry in the custom module will be created  through a woocommerce order. This is working fine... 

But after the new entry is created, I want to assign the contact name based on the email address. How is this possible? 

e.g. A new entry is created in the custom module and this entry has the email address: "test@test.com".  Now the lookup-field (contacts) should populate itself by looking up the email address "test@test.com" in our contacts.