Skip to content

Instantly share code, notes, and snippets.

@brandonmwest
Last active September 13, 2016 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonmwest/442da3969eab9b7b2b0f55f5411f32c5 to your computer and use it in GitHub Desktop.
Save brandonmwest/442da3969eab9b7b2b0f55f5411f32c5 to your computer and use it in GitHub Desktop.
{
"personalizations": [{
"to": [{
"email": "anna@example.com"
}],
"cc": [{
"email": "bill@example.com"
}, {
"email": "connie@example.com"
}, {
"email": "doug@example.com"
}],
"substitutions": {
"%fname%": "Anna"
},
"custom_args": {
"customer_id": 54
},
"subject": "Special Message for Anna"
}, {
"to": [{
"email": "elwood@example.com"
}],
"cc": [{
"email": "frances@example.com"
}],
"substitutions": {
"%fname%": "Elwood"
},
"custom_args": {
"customer_id": 55
},
"subject": "Special Message for Elwood"
}],
"from": {
"email": "brandon@sendgrid.com"
},
"content": [{
"type": "text/plain",
"value": "Hello %fname%!"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment