想要为 MailChimp 提供动态内容? [英] Looking to give MailChimp dynamic content?

查看:34
本文介绍了想要为 MailChimp 提供动态内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我希望通过 MailChimp 每周发送一封预定的电子邮件.该电子邮件将包含给订阅者的最新 20 个库存清单(车库的汽车库存清单).

Ok so I'm looking to send out a weekly scheduled email with MailChimp. The email is to contain the newest 20 of the stock list (car stocklist of garage) to their subscribers.

我似乎无法像想象的那样使用 RSS 提要,所以我想知道有没有其他方法可以每周将一些格式化的 HTML(在 PHP 文件中)放入 MailChimp 模板的正文中?

I can't seem to get this to work with an RSS feed as imagined so i wondered is there any other way to get some formatted HTML (in a PHP file) into the body of MailChimp template on a weekly basis?

非常感谢.

推荐答案

如果希望在发送时将自定义内容注入模板,我建议您考虑创建一个使用我们模板语言的自定义模板.

If looking to inject custom content into a template at the time of sending, I would recommend having a look into creating a custom template that uses our template language.

如果您使用我们的模板语言在 MailChimp 中创建了自定义模板来指定可编辑的内容区域:http://templates.mailchimp.com/getting-started/template-language/,然后您就可以通过 API 更新这些内容区域.

If you've created a custom template within MailChimp using our template language to specify editable content areas: http://templates.mailchimp.com/getting-started/template-language/, then you would be able to update those content areas via the API.

为此,您需要进行广告系列/创建调用:https://apidocs.mailchimp.com/api/2.0/campaigns/create.php 或活动/更新调用:https://apidocs.mailchimp.com/api/2.0/campaigns/update.php 并指定您想要更改的部分和内容'内容' 参数.内容部分"将对应于添加到自定义模板的 mc:edit 标签.

To do this, you'll want to make either a campaigns/create call: https://apidocs.mailchimp.com/api/2.0/campaigns/create.php or a campaigns/update call: https://apidocs.mailchimp.com/api/2.0/campaigns/update.php and specify the section and content that you'd like to change as part of the 'content' parameter. the content 'sections' will correspond to the mc:edit tags that were added to the custom template.

您还可以自定义您的内容,例如在内容正文中为问候语添加名字,甚至可以进一步使用合并标签.如果您需要这种级别的自定义,我强烈建议您也检查一下并考虑在您的内容中使用它们:合并标签入门:http://kb.mailchimp.com/merge-tags/using/getting-started-with-merge-tags

You also have the ability to customize your content, like adding a first name to a greeting in the body of your content for instance, even further with the use of merge tags. I highly recommend checking those out as well and consider using them in your content if you need that level of customization: Getting Started with Merge Tags: http://kb.mailchimp.com/merge-tags/using/getting-started-with-merge-tags

这篇关于想要为 MailChimp 提供动态内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆