Hey,
I am trying to send an email with the following cloud code -
Moralis.Cloud.define("sendEmailToUser", async (request) => {
const res = Moralis.Cloud.sendEmail({
to: request.params.email,
subject: "Fundamentals",
html: "Pampamentally it does make sense https://youtu.be/xXrkgWDcd7c"
});
logger.info(`${res}`);
return res
});
I get this response
{
"code": 141,
"error": "Bad Request"
}
Please let me know how I can resolve this.
Thanks.