山魈:merge_vars 不工作
Mandrill: merge_vars not working
我正在努力通过 Mandrill 'merge_vars' 向用户电子邮件发送不同的链接,但它不起作用。 API 日志中的相关部分:
"message": {
"preserve_recipients": false,
"auto_text": false,
"auto_html": false,
"to": [
{
"email": "kajacx10@gmail.com"
}
],
"html": "... link: *|REFUSELINK|* ...",
"text": "... link: *|REFUSELINK|* ...",
"merge": true,
"merge_language": "mailchimp",
"merge_vars": [
{
"recipient": "kajacx10@gmail.com",
"vars": [
{
"name": "refuselink",
"content": "http://myLink.com"
}
]
}
]
},
"key": "myKey"
我正确地收到了邮件,但我看到的是原件 *|REFUSELINK|*
而不是所需的替代邮件。知道我做错了什么吗?
ups,是rcpt
,不是recipient
:
"merge_vars": [
{
"rcpt": "kajacx10@gmail.com", /* <-- here */
"vars": [
{
"name": "refuselink",
"content": "http://myLink.com"
}
]
}
]
我正在努力通过 Mandrill 'merge_vars' 向用户电子邮件发送不同的链接,但它不起作用。 API 日志中的相关部分:
"message": {
"preserve_recipients": false,
"auto_text": false,
"auto_html": false,
"to": [
{
"email": "kajacx10@gmail.com"
}
],
"html": "... link: *|REFUSELINK|* ...",
"text": "... link: *|REFUSELINK|* ...",
"merge": true,
"merge_language": "mailchimp",
"merge_vars": [
{
"recipient": "kajacx10@gmail.com",
"vars": [
{
"name": "refuselink",
"content": "http://myLink.com"
}
]
}
]
},
"key": "myKey"
我正确地收到了邮件,但我看到的是原件 *|REFUSELINK|*
而不是所需的替代邮件。知道我做错了什么吗?
ups,是rcpt
,不是recipient
:
"merge_vars": [
{
"rcpt": "kajacx10@gmail.com", /* <-- here */
"vars": [
{
"name": "refuselink",
"content": "http://myLink.com"
}
]
}
]