Triggered Email from DB Collection

I have an inquire page on my website with a custom form that writes to a database collection when the user clicks submit.

I created a triggered email. The code given to me by Wix is as follows:

import wixCRM from ‘wix-crm’;
//…
wixCRM.emailContact(‘RKVhMCh’, , {
variables: {
subscriberName:
}});

How in the world can I send my triggered email to the user that just entered their information. Seems like this should be fairly straight-forward. I still am unable to find a solution in the forum.

I placed this code on the inquire now page. How do I determine the contact id, etc.

Thanks,
Chris

1 Like