#SendGrid plugin setup

12 messages · Page 1 of 1 (latest)

empty agate
#

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.

storm warren
#

Your account is probably not verified on sendgrid.

empty agate
#

Oh, maybe the last step is not done

empty agate
#

All checked. Still no email is triggered.

empty agate
#

Using the same API key, sending with CURL works, but not from Medusa.

empty agate
#

Checkout email and resend email works after SendGrid setup. Orders received before SendGrid is configuration will not work with SendGrid.

gritty jungle
#

Hi, did you fix this?

sleek pond
#

Check out resend. Much easier to work with than sendgrid. (Personal opinion, I don’t work there and have 0 affiliation)

oak spindle
#

Ahh I see it will launch a nextjs app with live preview,, should work.

#

I'm currently using postmark with react-mjml templates. But the lack of any live previews is killing me.