我在使用mc:edit我提供的内容替换Mailchimp中的内容区域时遇到问题.
电子邮件将发送给订阅者,但所提供的内容都不会添加到电子邮件中.任何人都可以看到我可能会出错的地方?
这是我正在使用的脚本:
campaign = mailchimp.campaigns.create(
"regular",
{
"list_id" => list_id,
"subject" => "Email Test",
"from_email" => "edward@somewhere.com",
"from_name" => "Edward",
"to_name" => "The to name",
"template_id" => 35089
},
{
"sections" =>
{
"commit_stuff" => "Modified project to use XYZ ruby gem. #ABC-123",
"content" => "This is the content",
"more-content" => "This is more content"
}
}
)
result = mailchimp.campaigns.send(campaign["id"])
Run Code Online (Sandbox Code Playgroud)
这是我试图修改的电子邮件中的部分:
<div mc:edit="commit_stuff" class="mcnTextContent">Use your own custom HTML</div>
<div mc:edit="content"></div>
<div mc:edit="more-content"></div>
Run Code Online (Sandbox Code Playgroud)
相关文档: