Hello! So, I made a simple triggered e-mail last week, it was working fine but all of the sudden it stopped working. So I ran a few tests to check everything. After while I tried to create the simplest page as possible to test the wixUsers . emailUser code (there is a print of it bellow). Right now, it only works to contact a single specific site member and I have no idea why, if you guys could help me it would be awesome.
Oh, just to be clear, the code works fine finding the wixUsers . currentUser . id, but no email is sent (except for the single specific member like I said before).
Thank you very much,
-G.G.
import wixUsers from 'wix-users';
$w.onReady(function () {
});
let user = wixUsers . currentUser
let userId = user . id
export function box1_click(event) {
$w("#useridtext") . text = userId
wixUsers . emailUser("test", userId)
.then( () => {
$w("#worked").show()
} )
.catch( (err) => {
console.log(err);
} );
}
PS. I needed to “break” everything that looked like a link because the forum didn’t want me to publish this post.