Hi everyone,
I’m experiencing a very strange issue on all my website as my triggered emails stopped being sent (after a new contact is created).
It’s driving me crazy because this functionality is essential for me and I can’t find the problem…
I think it’s a problem on Wix side because my code worked without any problem before and suddenly stopped working. And also, I replicated the tutorial from Wix to send triggered mails ( https://support.wix.com/en/article/velo-tutorial-sending-a-triggered-email-to-contacts ) and even with the simplest code, the emails are not sent…
This is my test ( https://costerquentin.wixsite.com/trigger-mail-test ) site to investigate on the issue with a very basic form that should send an email to the new contact created…but no
The console log say the mail is “sent”, the new contact is created but nothing… the triggered mail isn’t sent…
Here is my code and some printscreens. Do you have any idea on what could be the issue ?
Has Wix changed some parameters / API / rules ?
Thanks for your help !
import wixCRM from 'wix-crm';
$w.onReady(function () {
});
export function signUpButton_click(event) {
wixCRM.createContact({
"firstName": $w('#nameInput').value,
"emails": [$w("#emailInput").value],
"interest_area": $w("#interestArea").value
})
.then((contactId) => {
wixCRM.emailContact("trigger_test", contactId, {
"variables": {
"name": $w('#nameInput').value,
"interest_area": $w("#interestArea").value
}
})
.then(() => {
console.log(contactId)
console.log("mail normalement envoyé")
$w('#check').show();
})
.catch((err) => {
console.log("erreur",err)
});
});
}