documentation
documentation copied to clipboard
Node.js example for multiple tags is wrong
Current example is
var data = { from: 'Excited User <[email protected]>', to: 'alice@example', subject: 'Tagged', text: 'Testing some Mailgun awesomeness!', "o:tag" : 'newsletters', "o:tag" : 'September newsletter' };
Which is wrong as javascript object could not have two properties with the same name.
The right example is:
var data = { from: 'Excited User <[email protected]>', to: 'alice@example', subject: 'Tagged', text: 'Testing some Mailgun awesomeness!', "o:tag" : ['newsletters', 'September newsletter'] };