Dynamic campaign templating

4 views
Skip to first unread message

Mark

unread,
Jun 22, 2010, 6:45:28 PM6/22/10
to MailChimp API Discuss
We have a client who wants a nice looking HTML email campaign with
dynamically inserted content from a web service. These messages would
go out weekly with volatile precious metals buy/sell quotes. All the
content would be the same for each recipient, so I'm not looking at
merge fields. What looks promising is the campaignCreate() method. It
looks like I could create the template, mark some section of it as
"quotes" and use the "html_quotes" key to pass in my table of buy/sell
quotes.

What I need is an understanding of how to mark that section in the
template, and what the pieces of this puzzle might look like. It
sounds like I'd need something to create the HTML table from the web
service. Then I'd need another piece that executes the insertion API.
Of course, I'd also need the MailChimp template.

Can anyone point me to some details?

jesse

unread,
Jun 22, 2010, 7:22:03 PM6/22/10
to MailChimp API Discuss
Yes, you have all of that correct. Here are the docs on using our
templating language:
http://www.mailchimp.com/resources/email-template-language/

Basically, you'll use a mc:edit="quotes" attribute on the section you
want to replace with your custom content and pass that as
"html_quotes" as you said. The knowledge base will be helpful with
questions about working with them in the app:
http://www.mailchimp.com/kb


jesse
Reply all
Reply to author
Forward
0 new messages