I have followed the Medusa documentation setting up SendGrid, passing SendGrid verification, adding single sender, adding dynamic template and obtaining API key.
Redis is up and linked with Medusa-Server. (I have tried to rename REDIS_URL: redis://tamacoffee-redis to REDIS_URL: redis://dummy-redis and it threw error)
.env
SENDGRID_API_KEY=SG.dummydummydummy
[email protected]
SENDGRID_ORDER_PLACED_ID=d-dummydummydummy
SENDGRID_ORDER_CANCELED_ID=d-dummydummydummy
SENDGRID_ORDER_SHIPPED_ID=d-dummydummydummy
SENDGRID_GIFT_CARD_CREATED_ID=d-dummydummydummy
SENDGRID_CUSTOMER_PASSWORD_RESET_ID=d-dummydummydummy
SENDGRID_RESTOCK_ID=d-dummydummydummy
medusa-config.js
{
resolve: `medusa-plugin-sendgrid`,
options: {
api_key: process.env.SENDGRID_API_KEY,
from: process.env.SENDGRID_FROM,
order_placed_template: process.env.SENDGRID_ORDER_PLACED_ID,
order_canceled_template: process.env.SENDGRID_ORDER_CANCELED_ID,
order_shipped_template: process.env.SENDGRID_ORDER_SHIPPED_ID,
gift_card_created_template: process.env.SENDGRID_GIFT_CARD_CREATED_ID,
customer_password_reset_template: process.env.SENDGRID_CUSTOMER_PASSWORD_RESET_ID,
medusa_restock_template: process.env.SENDGRID_RESTOCK_ID,
},
},
I have updated provider_id in table notification to sendgrid.
I have tried triggering an "order confirm" email, but no email is received.
"Request" count is still 0 on SendGrid.
What have I missed?
Thanks.