Here is my code-
import { triggeredEmails } from 'wix-crm';
const contactId = 'contact-id-that-i-got-from-address-bar';
$w.onReady(function () {
$w('#submitButton').onClick(function () {
triggeredEmails.emailContact('T1YaVBq', contactId)
.then(()=> console.log('success'))
.catch(err => console.log('err', err));
});
});
Error I’m getting in the console-
err Bad Request: please check the user inputs
Any help is appreciated