Here is the code snip that works for their email. Note: I defined "count’, “max”, “today1” & “com” earlier in the code.
// Get user email
let com = "Any Comments"
let user = wixUsers.currentUser;
let userId = user.id;
user.getEmail()
.then( (email) => {
$w("#text14").text = email
// Trigger the email if list is finished
if ((count === max)) {
// Send email to current user
wixUsers.emailUser('Testemail', wixUsers.currentUser.id, {
variables: {
"name": email,
"date": today1,
"comments": com
}