Failed to send email because no mail adapter is configured for Parse Server

I have the following cloud function:

Moralis.Cloud.define("confirmEmail", (request) =>{
	Moralis.Cloud.sendEmail({
    	to: request.params.email,
      	templateId: 'd-ba714320f5844bca92e696e24d4a2cb5',
      	dynamic_template_data: {username:request.params.username}
    });
})

I’m seeing this in the logs:

  1. 2021-05-03T13:44:13.335Z - Ran cloud function confirmEmail for user undefined with: Input: {“email":"[email protected],“username”:"[email protected]"} Result: undefined
  2. 2021-05-03T13:44:13.333Z - Failed to send email because no mail adapter is configured for Parse Server.

My Server URL is: https://jcubkyk1bhis.moralis.io:2053/server

Hey!

Have made any email configuration in the server details in the Admin panel?
Currently only SendGrid is supported, and you will need to provide an API key and an email that will serve as the sender.

/Capplequoppe

Ciao,

Yes, Sendgrid is setup in the Moralis admin panel

following the instructions on the youtube tutorial https://www.youtube.com/watch?v=SY30AUb8144.

Works after updating the Moralis server to 0.0.208

2 Likes

Hello.
I have the same issue sinds upgrading to 0.0.223.
Sendgrid is the provider and the api key and email are set as well.

  1. 2021-06-04T09:15:42.565Z - Ran cloud function contactEmail for user undefined with: Input: {“email":"[email protected]”,“name”:“tom”,“subject”:“hello”,“message”:“voila”} Result: undefined
  2. 2021-06-04T09:15:42.557Z - Failed to send email because no mail adapter is configured for Parse Server.

Awesome! i just received a mail telling me to update the srv, jobs done and it works again with 0.0.226 ;o)

I got the same error, and I’m using the latest version(0.0.235)

Now it is working, probably because I have reloaded the server.

1 Like