Alen
02/17/2023, 7:22 AMrp
02/17/2023, 8:05 AMAlen
02/17/2023, 8:11 AMrp
02/17/2023, 8:12 AMAlen
02/17/2023, 8:16 AMrp
02/17/2023, 8:17 AMAlen
02/17/2023, 8:18 AMsgMail
.send(msg)
.then(([response, body]) => {
console.log('Email sent successfully.');
console.log(response.statusCode);
})
.catch((error) => {
console.error(error)
})
If the response.statusCode
is 400 or 500 related then I want the mail to be send from supertokens.rp
02/17/2023, 8:20 AMoriginalImplementation.sendEmail(input)
Alen
02/17/2023, 8:20 AMrp
02/17/2023, 8:20 AMAlen
02/17/2023, 8:21 AM