wixCRM send email

Hello Ido!
“emailh” is being grabbed by an input, and then checked to see if there is an entry on the database.
If there is an entry it is grabbing the contactID, if not it creates a contact, saves the info in to the database.
Then the “email” function is called where it sends the email with the contactID.