wixUsers.approveByEmail() - suppress the sending of emails?

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

Yes, using this function in your code is the same as if you use certain Wix apps then you will get an automatic email sent out regardless of if you have set up your own triggered email or automation etc.

There is nothing you can do to stop this automated email from being sent out.

This is not a Wix Corvid issue, it is a Wix Support issue as I have myself asked about turning these emails off in Jan 2019 and I was told it could not be done.

So for further info on this you are better off going through Wix Support.
https://support.wix.com/en/article/contacting-wix-support

Thanks for your fast reply! I will try with Wix Support :).