Hello, I’m trying to email the user when he submits a form.
When I send the email (I already have a template) I recieve a 500 error:
unknown failure (500)
This is my code
wixCrm.createContact({
"emails": [$w("#input17").value]
}).then((contactId) => {
wixCrm.emailContact('reunion', contactId, {
variables: {
name: $w("#input14").value,
meetTitle: $w("#text25").text,
date: $w("#text26").text,
link: $w("#text27").text
}}).catch((err) => {
console.log(err);
});
}).catch((error) => {
console.log(error);
});