尝试弄清楚为什么某些mandrill模板仍在跟踪打开和点击率,在我们的API中,我们同时禁用了track_opens
和track_clicks
。
根据Mandrill, How does open tracking work?,如果您设置这些参数,它将覆盖任何用于跟踪的帐户设置。
所以我试图弄清楚每个模板基础上是否存在可能的帐户设置缺少的内容?
message = {
subject: subject, global_merge_vars: global_merge_vars, merge_vars: to_email_hashes.map { |hash|
hash[:merge_vars][:vars] = _hash_to_mandrill_vars(hash[:merge_vars][:vars])
hash[:merge_vars]
},
from_email: _from_email_mask(from_email), from_name: from_name, to: to_email_hashes.map { |hash| {name: hash[:name], email: hash[:email]} },
headers: {}, preserve_recipients: false, track_opens: false, track_clicks: false,
attachments: attachments.map { |hash| {name: hash[:name], type: hash[:type], content: _encode_attachment(hash[:content])} }
}