I’m trying to send an email from the cloud functions, Sendgrid is all set up, the API key and email address is set in settings, the functions triggers an event that is recored in the data base, but no email is sent.
const logger = Moralis.Cloud.getLogger();
logger.info("Hello World");
Moralis.Cloud.afterSave("AuctionCreated", async (request) => {
Moralis.Cloud.define("sendEmailToUser", function (request) {
Moralis.Cloud.sendEmail({
to: "**@***********.com",
subject: "Test",
html: "Test"
});
});
})