Skip to content

Instantly share code, notes, and snippets.

@brandonmwest
Last active Sep 13, 2016
Embed
What would you like to do?
{
"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