I am trying to send mail using mandrill from the node js API.
I managed to send the following if I keep my "downloadLink" free from "dangerous" characters such as: "/" and "?"
The following messages are sent, but the "link" goes nowhere:
var downloadLink =(encodeURIComponent('itms-services://c')
var text = [
"We are excited to send you a version of our app",
"You can download it here: <a href=\""+downloadLink+"\">link</a> thats it.",
].join('<br>')
console.log(text)
var message = {
"html": text,
"subject": "New App!",
"from_email": "Hello@d.com",
"from_name": "D Guys",
"to": [{
"email": mail,
"type": "to"
}],
"headers": {
"Reply-To": "message.reply@example.com"
},
"important": false,
"track_opens": true,
"track_clicks": true,
"auto_text": null,
"auto_html": false,
"inline_css": null,
"url_strip_qs": null,
"preserve_recipients": null,
"view_content_link": null,
"tracking_domain": null,
"signing_domain": null,
"return_path_domain": null,
"merge": true,
}
removing the '/' characters from 'downloadLink' really works.
source
share