Hey all!
I will be very happy if someone could give me any tips on why the emails are not getting sent but still says it is sent.
The below code has a contactId that is present as a user / site member in the system. The Triggered Email ID is checked and exists. Most of the code is copied from the Wix Triggered Email Template that got created after creating the template itself.
console.log("Contact Id to send to: " + userData.contactId);
wixCRM.emailContact("R3QsOzC", userData.contactId, {
variables: {
firstName: userData.useName,
orderNumber: $w("#orderNumber").value,
orderStatus: "WAITING"
}
} )
.then( () => {
console.log("Triggered email sent");
} )
.catch( (err) => {
console.log(err);
} );
When I execute the code the console says “Triggered email sent” but nothing is sent…