[Answer]-Mailchimp with django

1👍

Problem is because of Repeatable section. Repeatable section having different way to add data.

template_content = {'html_repeat_1:0:postcard_heading00':postcard_heading_data,
                  'html_repeat_1:0:postcard_image': postcard_img_data, 
                  'html_repeat_1:0:std_content00': std_content_data}

Means [‘repatable_section’]:[‘index’]:[‘section_name’]

I done this way and problem gets solved.

0👍

I was not using djano-mailchimp, but I’ve managed to do the same with the plain Mailchimp API using mailsnake and it just wasn’t complicated.

You can easily pass those in something like:

 cid = mailsnake.campaignCreate(type='regular',
                                options={
                                             'list_id': list_id,
                                             'subject': some_subject,
                                             'template_id': some_template_id,
                                        },
                                segment_opts=segment,
                                content={
                                             'html_HEADER': some_header,
                                             'html_MAIN': some_main_content,

                                        }
                                )
👤jasisz

Leave a comment