Hey All,
I’m having an odd experience with Wix Triggered Email Templates.
It seems that Microsoft email clients aren’t rendering correctly (go figure), both Outlook and Windows Mail client are failing. I’ve attached screenshots of the template, correctly rendered, as well as when rendered in Outlook/Mail. Here is the code that triggers the email and provides the variables.
export function submit_click(event, panasonicResult) {
showConfirm();
let city = $w('#city').value;
let state = $w('#state').value;
let ppw = $w('#text55').text;
let marketppw = $w('#text47').text;
$w('#city2').html = "<h5>In " + city + ", " + state + "</h5>";
wixCRM.createContact({
"name": $w('#name').value,
"emails": [$w('#email').value]
})
.then((contactID) => {
console.log("contactID", contactID)
wixCRM.emailContact('RHKKDTB', contactID, {
variables: {
"name": $w('#name').value,
"radio2": $w('#radio2').value,
"input2": $w('#input2').value,
"radio1": $w('#radio1').value,
"input3": $w('#input3').value,
"radio3": $w('#radio3').value,
"input1": $w('#input1').value,
"phone": $w('#phone').value,
"solarResult": $w('#text26').text,
"marketPrice": $w('#text47').text,
"module": $w('#text30').text,
"city": $w('#city').value,
"state": $w('#state').value,
"ppw": $w('#text55').text,
"marketppw": $w('#text47').text,
}
})
.catch((err) => {
console.log(err);
})
})
}
Any and all help is appreciated.
Thank you!