docs: fix SendGrid's dynamic_template_data property (#5112)
This commit is contained in:
@@ -3989,7 +3989,7 @@ const sendOptions = {
|
||||
templateId: "d-123....",
|
||||
from: "ACME <acme@mail.com>",
|
||||
to: "customer@mail.com",
|
||||
data: { dynamic: "data" },
|
||||
dynamic_template_data: { dynamic: "data" },
|
||||
}
|
||||
|
||||
sendgridService.sendEmail(sendOptions)
|
||||
|
||||
@@ -158,7 +158,7 @@ class RestockNotificationSubscriber {
|
||||
templateId: "restock-notification",
|
||||
from: "hello@medusajs.com",
|
||||
to: emails,
|
||||
data: {
|
||||
dynamic_template_data: {
|
||||
// any data necessary for your template...
|
||||
variant,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user