docs: fix SendGrid's dynamic_template_data property (#5112)
This commit is contained in:
@@ -170,7 +170,7 @@ class CustomerConfirmationSubscriber {
|
||||
templateId: "customer-confirmation",
|
||||
from: "hello@medusajs.com",
|
||||
to: data.email,
|
||||
data: {
|
||||
dynamic_template_data: {
|
||||
// any data necessary for your template...
|
||||
first_name: data.first_name,
|
||||
last_name: data.last_name,
|
||||
|
||||
@@ -184,7 +184,7 @@ class ClaimOrderSubscriber {
|
||||
templateId: "order-claim-confirmation",
|
||||
from: "hello@medusajs.com",
|
||||
to: data.old_email,
|
||||
data: {
|
||||
dynamic_template_data: {
|
||||
link: `http://example.com/confirm-order-claim/${data.token}`,
|
||||
// other data...
|
||||
},
|
||||
|
||||
@@ -241,7 +241,7 @@ class OrderConfirmationSubscriber {
|
||||
templateId: "order-confirmation",
|
||||
from: "hello@medusajs.com",
|
||||
to: order.email,
|
||||
data: {
|
||||
dynamic_template_data: {
|
||||
// any data necessary for your template...
|
||||
items: order.items,
|
||||
status: order.status,
|
||||
|
||||
@@ -176,7 +176,7 @@ class InviteSubscriber {
|
||||
templateId: "send-invite",
|
||||
from: "hello@medusajs.com",
|
||||
to: data.user_email,
|
||||
data: {
|
||||
dynamic_template_data: {
|
||||
// any data necessary for your template...
|
||||
token: data.token,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user