Hi there,
on my site I have turned on the manually approval of new members. After successful payment of new registering users, I use the function “approveByEmail()” to approve them so they can log in.
Of course I also send them an email after successful registration using a third party email-service kind of “Hello XY, thanks for registering, this will be your next steps…”.
Everything works fine, but the user receives two emails(!). One email seems to come from Wix although I turned of every possibility in Wix to send emails. Also the wix-support had a look and didn’t find any other possibility to suppress the sending of emails.
It seems, that a successful use of wixUsers.approveByEmail() automatically sends an email to the user. Is there any possibility to suppress this automatically sended email from Wix while using “approveByEmail()”?
This is the relevant code in the backend:
export function doApprovalbyemail(email){
// approve the user
return wixUsers.approveByEmail(email)
.then( (sessionToken) => {
return {"sessionToken":sessionToken, "approved": true, "email": email}
} )
.catch( (error) => {
return {"approved": false, "reason": error, "email": email}
} );
}
Thanks in advance!
Best, Daniel