skm*_*kme 5 javascript urlencode node.js mandrill
我正在尝试使用来自 node js API 的 mandrill 发送邮件。
只要我的“下载链接”没有“危险”字符,例如:“/”和“?”,我就成功发送了以下内容
发送以下内容,但“链接”无处可循:
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,
//"name": "Recipient Name",
"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,
}
Run Code Online (Sandbox Code Playgroud)
从“downloadLink”中删除“/”字符确实有效。
| 归档时间: |
|
| 查看次数: |
917 次 |
| 最近记录: |