multiple emails in CampaignSendTest() API function

8 views
Skip to first unread message

vicky

unread,
Dec 17, 2009, 5:00:55 AM12/17/09
to MailChimp API Discuss
Hi,

I am working on integration process of mailchimp with my website built
with python (django framework) using mailchimp apis.

I am using CampaignSendTest() function to send test emails.
I am able to send individual emails but not able to send multiple
emails.

Suppose, i have
test_emails = ['email1','email2','email3','email4']

and i try to send test email using
campaign_send_test('campaign_id',test_email).
I got error

<h1>ChimpyException at /admin/editorial/newsletter/send/</h1>
<h2>Invalid Test Email Address: &quot;
[&#39;vicky8...@gmail.com&#39;, &#39;veen...@damcogroup.com&#39;]
&quot;</h2>

Please help me ........

jesse

unread,
Dec 17, 2009, 10:52:06 AM12/17/09
to MailChimp API Discuss
That error message is showing you that you are passing a string, not
an array. You'll need to determine how to properly do that with either
python or the chimpy wrapper, which ever is not handling that
correctly. If you've gotten to that point, you should have used
several other methods that require passing arrays.


jesse


On Dec 17, 5:00 am, vicky <vicky82da...@gmail.com> wrote:
> Hi,
>
> I am working on integration process of mailchimp with my website built
> with python (django framework) using mailchimp apis.
>
> I am using CampaignSendTest()  function to send test emails.
> I am able to send individual emails but not able to send multiple
> emails.
>
> Suppose, i have
> test_emails = ['email1','email2','email3','email4']
>
> and i try to send test email using
> campaign_send_test('campaign_id',test_email).
> I got error
>
> <h1>ChimpyException at /admin/editorial/newsletter/send/</h1>
>   <h2>Invalid Test Email Address: &quot;

> [&#39;vicky82_da...@gmail.com&#39;, &#39;veene...@damcogroup.com&#39;]

Reply all
Reply to author
Forward
0 new messages