Trigger Email. Not Sending Emails

Hi,

Here is my code. See my explanation video here for the quickest way to sole this.

import wixUsers from ‘wix-users’;

$w.onReady( function () {
$w(“#dataset1”).onAfterSave( () => {
if (wixUsers.currentUser.loggedIn) {
const userId = wixUsers.currentUser.id;

  wixUsers.emailUser("newMembersRequest", userId, { 
  } ); 
} 

} );
} );

Hi Justin,

First things first, i’ve noticed you’ve used import wixUsers from ‘Members’ it should be: import wixUsers from ‘wix-users’ ; like you did in your post.
Second, can you try using a different email (not the site admin’s) to check if it still not working? Also, check your Spam and your Promotions tab inside the email account and see if the email is there.

  • Lior