How to send email to campaign subscriber in Mailchimp.

683 views
Skip to first unread message

huniverse

unread,
Feb 17, 2011, 7:11:04 AM2/17/11
to MailChimp API Discuss
I have created Campaign in Mailchimp account and through Listsubscribe
method, made subscription to user for that campaign. Now I want to
send Email to Campaign members Programatically in C#. Actually i am
new to this concept and want to send newsletter to users who have
subscribed to campaign. Please Provide any Sample code or method to
implement this.

jesse

unread,
Feb 17, 2011, 12:12:23 PM2/17/11
to MailChimp API Discuss
The methods you need are documented here:
http://apidocs.mailchimp.com/rtfm/#campaignrelated

You'll want one of campaignSendNow() or campaignSchedule() at least.


jesse

huniverse

unread,
Feb 17, 2011, 2:00:31 PM2/17/11
to MailChimp API Discuss
Thanks for your prompt reply.It works fine. My another questions :

1.) Is there any way to get campaignid required in campaignSendNow()
method dynamically in C#. Currently i have hard code the id and it
work fine.But i want to do all dynamically.

2.) I want to send newsletter email from C# . i have created List and
Campaign on Mailchimp account. In my code with Listsubscribe() method
i am subscribing users to list and then making campaign with
subscribed users.To send newsletters to those subscribed users i need
campaignid (cid) but i can not get it dynamically. I want to integrate
this module on website. please suggest any steps or methods for
newsletter subscription with C# code.

3.) What are basic steps for create and send newsletter on Mailchimp
account and way to access it from C# with required methods.

jesse

unread,
Feb 17, 2011, 2:07:50 PM2/17/11
to MailChimp API Discuss
The campaigns() method will return the campaign id that you need to
use, which seems to answer all 3 of those questions.

The API doesn't care what language you are using. If you are having C#
specific issues, you'll either need to try out a wrapper :

http://apidocs.mailchimp.com/downloads/#dotnet

Or work with your system libraries to follow the documentation about
connecting and sending/receiving data at the top of the docs:

http://apidocs.mailchimp.com/rtfm/


jesse

huniverse

unread,
Feb 18, 2011, 3:28:11 AM2/18/11
to MailChimp API Discuss
hi

Thanks for help. It works fine. One more thing can you please suggest
me how to get listid from listsoutput() method dynamically. Currently
i hard code the id but i want to make it dynamic. I got method but do
not able to get specific id from List.

jesse

unread,
Feb 18, 2011, 12:42:53 PM2/18/11
to MailChimp API Discuss
It's the id returned by lists(). I'm not quite sure how better to
explain that:

http://apidocs.mailchimp.com/rtfm/lists.func.php


jesse
Reply all
Reply to author
Forward
0 new messages