Triggered E-mail not sending

I must be having a mental lapse. Literally, this is the only code on my page and it is not sending an e-mail:

import wixUsers from ‘wix-users’;
wixUsers.emailUser(‘Qv0ODo0’, wixUsers.currentUser.id)
.then( () => {
console.log(“Triggered email sent”);
} )
. catch ( (err) => {
console.log(err);
} );

I am positive the email ID is correct, there are no variables and yes I am logged in on live.

What is so obvious that I am missing?

Bumping – Because this has to be a bug on Wix’s end. The code below sends a Triggered E-mail using WixCRM, then also one using standard site member e-mail. In both instances, the log says the e-mail was successfully sent, but only the one using the CRM method works. The code and triggered email templates are all hte same.

Any ideas why this would not work???

import wixUsers from 'wix-users';
import wixCRM from 'wix-crm';

$w.onReady(function () {


let firstName = 'David'
let lastName = 'Seroy'
let email = 'davidtest@gmail.com'

wixCRM.createContact( {
 "firstName": firstName,
 "lastName": lastName,
 "emails": [email],
} )
.then( (contactId) => {

  wixUsers.emailUser('Qv0ODo0', wixUsers.currentUser.id)
.then( () => {
    console.log("Triggered email sent");
  console.log(wixUsers.currentUser.id);
  } )
  .catch( (err) => {
    console.log(err);
  } );

  console.log(contactId);
  wixCRM.emailContact('Qv0ODo0', contactId)
  .then( () => {
    console.log("Triggered email sentCRM");
  } )
  .catch( (err) => {
    console.log(err);
  } );
} );

OK – Talking to myself here, but in case anyone runs into the same issue, I’m posting my understanding or solution. It appears that WixUsers.emailUser does not work if the registered user uses Google+ to login, but does work if they just create a simple email and password login.

I think my only solution is to use WixCRM to create a contactID every time, automatically as soon as a new user registers, then never use WixUsers to e-mail?

Hi, thanks for great problem report. Yes we have an issue with users who login with Google. We are investigating it. I will inform you when we will find a fix.

Please, can you check and write to me at salna@wix.com if it works or not? We did some fixes and we cannot recreate it anymore.

Hey David, thanks for posting your solution (I thought I was losing it as well). My solution is going to be to disable third party login and use the native registration process. Thanks again and I hope you found what you’re looking for. Wix can you please note this issue in the trigger e-mail article?