Ok, unfortunately, this is not as easy as described in the tutorial, as SendGrid setup is somewhat more complex. I set up a single sender verification, and there are no more errors from the dapp side of life. Also the moralis database works as intended. But how to implement and verify sendgrid correctly?
as you can see here, SendGrid asks for the language that we want to integrate the service to, I just went with node.js, generated and API key, inserted it into moralis cloud function, but the email never arrives.
Did someone integrate this successfully and can point into the right direction?
Thanks a lot
old
UPDATE:
I redid everything, spin up a new server, spinned up ganache gain. now the errors do not throw. still waiting for the e-mail though… will keep you updated.
Hi everyone,
I am following @filip’s tutorial on how to send emails to users via moralis.
I keep getting this error:
no matter which email I input or with which account I log in.
any clues?
main.js
Moralis.initialize("VyXM3keXqHlBnaH5FUv8rT6Y9DDMCBBreVc2kyJK"); // Application id from moralis.io
Moralis.serverURL = "https://m0e24kwy0shp.moralis.io:2053/server"; //Server url from moralis.io
async function login() {
try {
user = await Moralis.Web3.authenticate();
let email = document.getElementById("email_input").value;
user.set("email", email);
await user.save();
Moralis.Cloud.run("sendEmail", {});
} catch (error) {
console.log(error);
}
}
document.getElementById("login_button").onclick = login;