Hello,
I have some code that has been running well for many months on multiple pages across three WIX sites. It sends a triggered email to members with some content that they have submitted to a database. This code failed across all instances and the following error message appears in the console.
Error: {“message”:“”,“details”:{}}
at siteMembersSdkFactory.ts:111
at tslib.es6.js:100
at Object.next (tslib.es6.js:81)
at a (tslib.es6.js:71)
As I have not changed the code and as it has failed universally this makes me think that something has failed with the email element.
My domain was purchased from Go Daddy and the nameservers are hosted by WIX
I use a Gmail account purchased via WIX to send all emails across the three wix sites
I have add SPF and DKIM on one of the WIX sites but this has not helped.
This is an extract of some of the code
import wixUsers from ‘wix-users’ ;
import wixData from ‘wix-data’ ;
let user = wixUsers.currentUser;
let userId = user.id;
export function emailMe_click(event) {
$w( ‘#emailMe’ ).hide();
$w( ‘#save’ ).hide();
thanks();
$w( “#Assessment6TH” ).save()
.then(() => {
if (wixUsers.currentUser.loggedIn) {
const userIdC = wixUsers.currentUser.id;
$w( “#Assessment6TH” ).onReady(() => {
wixUsers.emailUser( “STHeBook” , userIdC, {
variables: {
eBook: $w( “#textBox1” ).value,
}
})
.then(() => {
$w( ‘#EmailSent’ ).show();
setTimeout(() => {
$w( ‘#EmailSent’ ).hide();
$w( ‘#save’ ).show();
$w( ‘#emailMe’ ).show();
}, millisecondsToDelay)
})
. catch ((err) => {
console.log(err);
});
});
}
})
. catch ((err) => {
let errMsg = err;
});
}
I sense I am not looking in the right place for the solution and any help would be really appreciated.
Thank you