"[Test] " prefix added to all campaigns

280 views
Skip to first unread message

Jon Duell

unread,
May 21, 2012, 6:20:13 PM5/21/12
to mailchimp-...@googlegroups.com

I'm creating campaigns using the 1.2 API (it's an older site, don't have the resources to upgrade to the 1.3 API), and all campaigns, regardless if they are a test campaign or not, are getting a "[Test] " prefix to the subject line.

I just chatted with a representative, and this is apparently a new feature on mailchimp that adds the "[Test] " to the subject line (with no way to turn it off).

Any ideas on how to upgrade API calls to make sure that all campaigns aren't marked as test (even though I'm sending them with the campaignCreate() function call)?

I'm using the 1.2 API php library.

jesse

unread,
May 22, 2012, 4:39:33 AM5/22/12
to mailchimp-...@googlegroups.com
This has nothing to do with the API, but that prefix is not added to real campaign sends. If you believe it is, you need to take a closer look at your code as it is apparently not doing what you think it is.


jesse
Message has been deleted

Jon Duell

unread,
May 22, 2012, 12:03:39 PM5/22/12
to mailchimp-...@googlegroups.com
Here's the code I'm using, not sure where I'm going wrong.  The thing is that it was working fine before this new feature was introduced (this has been sending hundreds of real campaigns for years)

<?php

  $api
= new MCAPI(API_KEY, ''));

  $segment_opts
= array('match' => 'all', 'conditions' => array(
    array
(
   
'field' => 'merge4',
   
'op' => 'eq',
   
'value' => ...
   
)
 
);

  $opts
['folder_id'] = ...
  $opts
['from_email'] =  '...';
  $opts
['from_name'] = '...';
  $opts
['inline_css'] = true;
  $opts
['generate_text'] = true;
  $opts
['title'] = 'Title';
  $opts
['list_id'] = ...
  $opts
['subject'] = 'Subject';
  $opts
['tracking'] = array('opens' => true, 'html_clicks' => true, 'text_clicks' => false);
  $opts
['authenticate'] = true;
  $content
= array('html' => $email_body);

  $retval
= $api->campaignCreate('regular', $opts, $content, $segment_opts);

jesse

unread,
May 22, 2012, 12:16:34 PM5/22/12
to mailchimp-...@googlegroups.com
That code doesn't send anything. There's a huge difference between using campaignSendTest() and campaignSendNow() or campaignSchedule().


jesse

Jon Duell

unread,
May 22, 2012, 12:23:06 PM5/22/12
to mailchimp-...@googlegroups.com

Sorry, forgot the last little bit of that code, which is using capaignSendNow().  A better example might be the API call history (see screenshot) of my account direct from mailchimp.  Each one of these campaigns (sent using campaignSendNow()) are getting the prefix

jesse

unread,
May 22, 2012, 12:48:16 PM5/22/12
to mailchimp-...@googlegroups.com
Bottom line is that only gets added to test sends, but just for kicks I ran a test to make sure everything is working as expected. Also realize that with the number of people using the API for creating and sending, this place would be flooded with complaints, but it's not because that's not happening.

Where ever you're seeing them from is definitely a test send, possibly someone in the app doing it, but it has nothing to do with the API.


jesse
Reply all
Reply to author
Forward
0 new messages