He forget to show us were he store the api key file. Let me explain -> You need to create file name .env in strapi and paste ur code like this : # Sendgrid SENDGRID_API_KEY='Insert your API key' Then the module export will read from the .env file and u good to go! Note that the .env file will have a gear icon and its more like a text file so dont worry.
How do I make this dynamic? Currently the email is hardcoded
Please share with me if you got the answer
Hi, how to make a mailing list for many people, dynamically getting their list from a request?
Thanks man, it's worked.
plz let me ask
i cannot login to Sendgrid admin, you can help me ?
Where did you paste the SendGrid API Key?
You paste is in the env. variables on the server thats running strapi
4K ULTRA HD
Hi thanks for this informative tutorial. One question how did you setup your API key because it is not working for me when I followed your tutorial.
same here. If u got the answer already, mind share it please
same here have anyone got answers
Muhammad Harith also explained it in the comments below...
Hi Friend,
I need to send the contact form data on email when user submits. Can you please guide me, how to do that?
Thanks in Advance!
You just pass the data from the form in the body of the request POST /email
lo intente con mailgun y no deja
He forget to show us were he store the api key file. Let me explain ->
You need to create file name .env in strapi and paste ur code like this :
# Sendgrid
SENDGRID_API_KEY='Insert your API key'
Then the module export will read from the .env file and u good to go!
Note that the .env file will have a gear icon and its more like a text file so dont worry.
i tried a lot but still got an error message "GET /email (496 ms) 500"
@@samihajebril7548 check your permissions
🚀