mailchimp

Mailchimp API (v1.3): addresses added with listSubscribe() don't appear in dashboard

别来无恙 提交于 2019-12-06 06:02:40
I'm using Mailchimp's API (v1.3) to add email addresses to a subscriber list on one of our sites. Obviously, I'm using listSubscribe() and everything is working fine, for the most part (read: API call returns true, all of the data I'm sending to Mailchimp gets added/updated correctly). The problem, however, is that whenever a new address is added, the things that are normally supposed to happen (in particular: email notifications to list manager, addresses showing up in the dashboard list status stream) aren't happening. I've looked around for quite a bit and haven't found anyone with the same

Mailchimp API and Repeatable Sections

人盡茶涼 提交于 2019-12-06 02:42:31
问题 Has anyone been able to successfully use the Mailchimp API to populate repeatable areas? Have tried all sorts, but to no avail. In the template, I have: div mc:repeatable div mc:edit="repeat_content" This suggests that the array should be: $content['repeat_content'][] = "Content 1"; $content['repeat_content'][] = "Content 2"; However, when calling campaignTemplateContent It returns array['repeat_content'] = Content1Content2 And nothing gets replaced in the Email that is sent. When I remove

Send an email via MailChimp

让人想犯罪 __ 提交于 2019-12-06 00:31:47
I think problem is around $api->listSubscribers() include('../libs/mailchimp/MCAPI.class.php'); $options = array('list_id' => '$list_id', 'subject' => 'Prova', 'from_name' => 'name', 'from_email' => 'info@example.com'); $content = array('html' => '<p>Testo di prova</p>'); $api = new MCAPI($apikey); $campaignId = $api->campaignCreate('trans', $options, $content); $api->listSubscribe($options['list_id']); $api->campaignSendNow($campaignId); if ($api->errorCode){ echo "Unable to Create New Campaign!"; echo "\n\tCode=".$api->errorCode; echo "\n\tMsg=".$api->errorMessage."\n"; } else { echo "New

Mailchimp Error: Bad Request - Your Campaign is not ready to send

ε祈祈猫儿з 提交于 2019-12-05 21:33:35
I am using following tutorial to create campaign and send email in MailChimp using Php. https://isabelcastillo.com/create-send-mailchimp-campaign-api-3 My Code piece are require_once('../wp-load.php'); function isa_mailchimp_api_request( $endpoint, $type = 'POST', $body = '' ) { // Configure -------------------------------------- $api_key = 'API KEY HERE'; // Changed API Key here // STOP Configuring ------------------------------- $core_api_endpoint = 'https://<dc>.api.mailchimp.com/3.0/'; list(, $datacenter) = explode( '-', $api_key ); $core_api_endpoint = str_replace( '<dc>', $datacenter,

Is it possible to code drag&drop templates for mailchimp?

痞子三分冷 提交于 2019-12-05 18:31:00
Seems like mailchimp has two types of templates: classic and "drag and drop." The classic templates (they call these "themes") have content areas defined using the mc: attrubutes. Some of these can be repeated but can't be moved around. The "drag and drop" templates have "container" zones which accept content blocks from a menu which appears only when the template is of the "drag and drop" kind. Seems that it is impossible to code and import a "drag and drop" template. I tried exporting one of theirs to HTML but was given a warning that re-importing the template will eliminate its drag and

Iterating over collection in mailchimp template via API

不打扰是莪最后的温柔 提交于 2019-12-05 18:05:07
Is there any chance to fill in repeatable sections via API? So for example I have list of products and I want to have product section only once in template and then iterate over collection. I have read previous discussion on this topics and googled but I still don't understand whether it is possible via an API. <!-- repeatable block --> <div mc:repeatable> <h2 mc:edit="product_title">Title</h2> <p mc:edit="product_description">Body</p> </div> <!-- /repeatable --> So can I supply something like this: html_product_title[0] = "Product1" html_product_description[0] = "Description1" html_product

Mandrill Editable Template: mc:edit link href

核能气质少年 提交于 2019-12-05 09:43:53
I'm trying to use Mandrill templates to send order tracking emails. Using the mc:edit works well for simple text like <span mc:edit="ship_id">ship_id</span><br> I was wondering if there was a way to pass the href link in a variable i.e. tracking_url <a class="mcnButton " title="Track order" href=tracking_url target="_blank" style="font-weight: bold;text-align: center;">Track Order</a> I'm using Djrill for Django and here's the code which sends the email so far, and I'd like to add tracking_url as a template_content variable or something similar msg = EmailMessage(subject="Track your order",

Yii2 create a form without a model

风流意气都作罢 提交于 2019-12-05 06:03:29
I was wondering how can I create a form without a model in Yii2 framework as I am creating a mailchimp signup form so a model isn't necessary the below code generates a form however as you can see it uses a model. <?php $form = ActiveForm::begin(['id' => 'login-form']); ?> <?= $form->field($model, 'title')->textInput(['maxlength' => 255]) ?> <?php ActiveForm::end(); ?> Do I still use activeform, how can I remove the $model variable without it throwing up an error? Yii2 has this nice little thingy called a DynamicModel . This basically allows you to create a model on the fly so that you can

mailchimp 3.0 Get template in html form

家住魔仙堡 提交于 2019-12-05 05:29:57
Is there a way to get the actual html file in Mailchimp API 3.0? I tried this method, /3.0/templates/{template-Id}?apikey={myAPIkey} but it's not returning the actual file, it's giving me the thumbnail of the template. There is currently no single API call to get the HTML source for a template as there is in API 2.0. Below is the reply I got from MailChimp support on December 9th, 2016: Thanks for reaching out to us with your question. At this time, API 3.0 does not contain a direct corollary that allows for the "source" of a Template to be retrieved. However, we are continuing to update the 3

Subject encoding on SmtpClient/MailMessage

放肆的年华 提交于 2019-12-05 05:15:10
I am trying to send emails that contain non-ASCII characters using the SmtpClient and MailMessage classes. I am using an external mailing service ( MailChimp ) and some of my emails have been rejected by their SMTP server. I have contacted them and this is what they replied: It appears the subject line is being Base64 encoded and then Quoted-Printable encoded, which generally should be fine, but one of the characters is being broken across two lines. So when your subject lines are a bit longer, in order to be processed correctly, it's broken on to two lines. When using UTF-8 quoted printable