I'm having a problem replacing mc:edit
content areas in Mailchimp with the content that I provide.
The email is sent out to the subscribers, but none of the content provided is added to the email. Can anyone see where I might be going wrong?
This is the script that I am using:
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"])
And this is the section inside the email that I am trying to modify:
<div mc:edit="commit_stuff" class="mcnTextContent">Use your own custom HTML</div>
<div mc:edit="content"></div>
<div mc:edit="more-content"></div>
Relevant docs: