Hi,
I have published a triggered email and have my code but i am not sure where i should embed the code for the desired effect.
I want to email to be sent to the person who has made the purchase 12 days after their purchase. They become a contact so how do i do this?
I cant seem to find the right page for the code below...
import wixCRM from 'wix-crm';
//...
wixCRM.emailContact('SlingDueBack', <enter-contact-id-here>, {
variables: {
productname: <enter-value-here>,
customername: <enter-value-here>,
productimage: <enter-value-here>
}});
Many thanks.
Kirsty
The code must be placed on the page where your user input form is.
See the video and following pages for more info:
https://www.youtube.com/watch?v=MOU2v4gagAI
https://support.wix.com/en/article/creating-a-triggered-email
https://support.wix.com/en/article/wix-code-tutorial-sending-a-triggered-email-to-members
https://support.wix.com/en/article/wix-code-tutorial-sending-a-triggered-email-to-contacts
https://support.wix.com/en/article/wix-code-tutorial-sending-an-email-on-form-submission
As for sending after a set number of days, then using an automation might be more easier for you:
https://support.wix.com/en/article/setting-up-an-automation