Skip to content

Instantly share code, notes, and snippets.

@electronicbites
Created January 15, 2018 12:16
Show Gist options
  • Save electronicbites/7dc01371a2ce69078218ec43031ccbd6 to your computer and use it in GitHub Desktop.
Save electronicbites/7dc01371a2ce69078218ec43031ccbd6 to your computer and use it in GitHub Desktop.
headers = {}
headers['X-MJ-CustomID'] = 'rubyPR_Test_ID_1469790724'
email = { from_email: "[email protected]",
from_name: "Mailjet TEST",
subject: 'Your email flight plan 23!',
text_part: 'Dear passenger 1, welcome to Mailjet! May the delivery force be with you!',
html_part: '<h3>Dear passenger 1, welcome to Mailjet!</h3><br />May the delivery force be with you!',
recipients: [{:email => '[email protected]'}],
CustomID: '1234567890',
headers: headers
}
variable = Mailjet::Send.create(email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment