mailchimp

Mailchimp API 3.0 Batch Subscribe

╄→尐↘猪︶ㄣ 提交于 2019-12-04 04:46:21
问题 Acconding to the documentation a POST to /lists/{list_id} should batch subscribe or unsubscribe list members. If I send two members; one new member and one unsubscribed member: { "update_existing":true, "members":[ { "email_address":"yyyy@yyy.yy", "email_type":"html", "status":"subscribed" }, { "email_address":"xxx@xxx.xx", "email_type":"html", "status":"subscribed" } ] } The documentation(http://developer.mailchimp.com/documentation/mailchimp/reference/lists/#create-post_lists_list_id),

Finding cleaned/bounced email addresses for a MailChimp campaign or list

故事扮演 提交于 2019-12-04 04:01:41
I'd like to automate the gathering of unsubscribe and cleaned email accounts for a given campaign. In the API playground, I see all the methods available on the List entity. Unsubscribes I see that it's in the LIST API GET reports/xxxxxx/unsubscribed Cleaned Where can I find the cleaned/bounced emails from a list or campaign? I know I can see the count of bounced in various places, but I'd like to find the email addresses that actually bounced, and the first and last names of the list member. Basically I'd like the API same as the 'export cleaned to csv' available on the website. How can I use

Mailchimp - add checkbox to list fields

荒凉一梦 提交于 2019-12-04 01:40:30
I started to use mailchimp and finds it very helpful. However, I would like to add to my list a checkbox field, and cannot find it. I neither find a way to give a default value (for example, I could think of a non-elegant way to use a radio button instead of a checkbox...). Help please? Thanks! MailChimp handles their information very specifically: Fields are for information about each subscriber that help you identify them (first name, last name, email, city, state, gender, etc). Fields do not allow for checkboxes. Then you have groups , which are basically ways to organize your subscribers

MailChimp Editable buttons inline styling is overridden

情到浓时终转凉″ 提交于 2019-12-03 20:30:57
I have created a MailChimp template with Editable Regions. I've styled everything inline, and I have an editable button as so: <!-- button --> <table class="button" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border-spacing: 0;font-family: Roboto, 'Times New Roman', Times, serif;border-left:1px solid #24303f;border-right:1px solid #24303f;border-bottom:1px solid #24303f;border-top:1px solid #24303f;margin:0 auto;min-width:248px;text-align:center;"> <tr style="font-family:Georgia, 'Times New Roman', Times, serif;"> <td height="40" style="border-collapse:

MailChimp merge_vars what else is accepted apart from FNAME & LNAME?

那年仲夏 提交于 2019-12-03 16:23:22
问题 I have implemented a very basic sign up using email address+name, although I would now like to add extra data such as Phone Number, Website etc. My question is where in the API doc can I find what else is supported apart from FNAME AND LNAME? At the moment I have: $merge_vars = array( 'FNAME' => $fname, 'LNAME' => $lname ); I am using the method listSubscribe and this is the information that is provided above: @param array $merge_vars optional merges for the email (FNAME, LNAME, etc.) (see

Can not get MailChimp to save my data using the API with Curl

天涯浪子 提交于 2019-12-03 16:03:19
I have tried and tried to send data to MailChimp using curl but cannot get the data to save in MailChimp. Any help with this would be greatly appreciated! Here is my code: $mailChimpUrl = "http://us2.api.mailchimp.com/1.3/?method=listSubscribe"; $merges = array( 'FNAME'=>'Dave', 'LNAME'=>'Gilmour', 'BUILDING'=>'Central High School', 'MMERGE17' => '35904', 'MMERGE12'=>'Yes' ); $apikey="myrealapiishere-us2"; $listId="myrealformidishere"; $email="zz22@aol.com"; $double_optin=true; $update_existing=false; $replace_interests=true; $send_welcome=false; $email_type = 'html'; $data = array( 'email

Add users to interest group via MailChimp API v2.0

随声附和 提交于 2019-12-03 14:03:08
I want to add a subscriber to an interest group via the MailChimp API. This is my $merge_vars array: $merge_vars = array( 'GROUPINGS' => array( 0 => array( 'id' => 17385, // The group list ID 'groups' => "Test 123", // A test group, that does exist ) ) ); and this is how I'm updating the member: $update = $mc->lists->updateMember(self::$mainListID, $email, $merge_vars); Here's a var_dump($merge_vars) : array(1) { ["GROUPINGS"]=> array(1) { [0]=> array(2) { ["id"]=> int(17385) ["groups"]=> string(8) "Test 123" } } } and $email is a struct, here's $var_dump($email) : array(1) { ["email"]=>

how to add email address to mailchimp list using api call in php

送分小仙女□ 提交于 2019-12-03 08:43:40
i am newbie in mailchimp. just now i have created account and got api key. i have gone through their api for adding email address to the list but didn't help it. i have contact us form and when user clicks on submit button i want to add user's email id in my mailchimp database. i have tried with this code also but getting 104 error.. $apikey = '***********-us3'; $listID = '*******'; $email = "********"; $url = sprintf('https://us2.api.mailchimp.com/2.0/lists/subscribe&apikey=%s&id=%s&email_address=%s&output=json', $apikey, $listID, $email, $_SERVER['REMOTE_ADDR']); $ch = curl_init($url); curl

Add WordPress featured image to RSS feed

自作多情 提交于 2019-12-03 07:32:04
I'm setting up an RSS to email campaign in MailChimp using my WordPress RSS Feed, and I want to include the featured image in my MailChimp template. I've tried using this to add the image, which works, but it simply adds it to the content, which doesn't work for MailChimp section of the RSS code: function featuredtoRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail', array( 'style' => 'float:left; margin:0 15px 15px 0;' ) ) . '' . $content; } return $content; } add_filter('the_excerpt_rss', 'featuredtoRSS'); add

How to send email through MailChimp 3.0 api?

◇◆丶佛笑我妖孽 提交于 2019-12-03 06:54:10
I'm trying to send email through mailchimp api version 3.0 in php, but i have no luck. This is my code: $postString = '{ "message": { "html": "this is the emails html content", "text": "this is the emails text content", "subject": "this is the subject", "from_email": "xxx@dyyy.sk", "from_name": "John", "to_email": "aaa.bbb@gmail.com", "to_name": "Anton", "track_opens": false, "track_clicks": false }}'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->api_endpoint); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, 'drewm:'.$this->api_key); curl_setopt