SendGrid API key does not work

I got two API keys from sendgrid yesterday and today. It is full access. See the following.


I put it at
View the Live demo in a browser page.
Open the Example template in the Wix Editor.
But the API key cannot work in either of these two places.
I want to retrieve one or more personal email addresses from the database and send emails to them. This person is not the current login person. This is the most basic and important question. Neither Wix Trigger Email nor Automations can not complete this function. Is there any other way to accomplish this task? Hope to get help.

Post your code

Hi J.D.
I did not program myself. Just put the api key in the relevant position. To test whether the two examples already given work?
For Live demo


after i run this example i got the following , but I didn’t get the email.

For Example template

Can you check if these two program work ?

@laizhihong I’m not familiar with the exact example, so I can’t advise. I installed the @sendgrid/mail npm, and I find it easy to work with.