我正在使用 Mandrill PHP-API 类向我的客户发送批量邮件。并且想知道为什么 Mandrill 只识别我的一些“recipient_metadata”合并标签?
Mandrill Api 请求是:
{
"message": {
"from_email": "me@example.com",
"from_name": "Bengwela Stream",
"headers": {
"Reply-To": "me@example.com"
},
"important": false,
"track_opens": true,
"track_clicks": true,
"auto_text": null,
"auto_html": null,
"inline_css": null,
"url_strip_qs": null,
"preserve_recipients": false,
"tracking_domain": null,
"signing_domain": null,
"tags": [
"CODE"
],
"merge": true,
"metadata": {
"sendtype": "demorun"
},
"to": [
{
"email": "to@example.com",
"name": "Bob "
}
],
"subject": "CODE L1",
"recipient_metadata": [
{
"rcpt": "bob@example.com",
"vars": [
{
"name": "A",
"content": 3
},
{
"name": "email",
"content": "bob@example.com"
},
{
"name": "invoice",
"content": "123456"
},
{
"name": "SITE",
"content": "http://example.com"
}
]
}
],
"html": " <!DOCTYPE html PUBLIC \" ....Complex.... *|A|* *|email|* *|invoice|* *|SITE|* ",
"text": " *|A|* *|email|* *|invoice|* *|SITE|* ",
},
"async": true,
"ip_pool": null,
"send_at": null,
"key": "123456456645"
}
但在任何 TEXT 和 EMAIL Live 发送中,只有 |A| |电子邮件| 被替换。我很可能在这里搞砸了一些事情。但我看不出是什么。:)
谢谢你的帮助。