Skip to content

Instantly share code, notes, and snippets.

@martyndavies
Created March 25, 2014 15:41
Show Gist options
  • Save martyndavies/9764529 to your computer and use it in GitHub Desktop.
Save martyndavies/9764529 to your computer and use it in GitHub Desktop.
var params = {
smtpapi: new sengrid.SmtpapiHeaders(),
... //some vars removed here!
files: [
{
filename: 'image.jpg',
contentType: 'image/jpeg',
cid: 'myimagecid',
content: ('yourbase64encodedimageasastringcangohere' | Buffer)
}
],
file_data: {},
headers: {}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment