Mailchimp API (.Net Wrapper) - Auto-Subscribe Users

I use the MailChimp API to subscribe users to my list (there is a refusal in the form of reg). I use the PerceptiveMCAPI shell to handle this.

Once a user has registered,

var ListId = "{LISTID}"; var a = new listSubscribe(new listSubscribeInput(ListId, model.Email, new Dictionary<string, object>())); if(a.Execute().result) { //Do Stuff } 

I need a way to automatically confirm my subscription (since it has its own verification methods). At the moment, MailChimp sends an email to the user with a request to confirm the subscription, as well as the site, I need a way to automatically accept the subscription for the user.

Is it possible? And how do we do it?

+7
source share
1 answer

It looks like you should be able to set the MailChimp double parameter to param parameter false to stop the confirmation.

Use the listSubscribe overload, which exposes it:

  public listSubscribeParms( string id, string email_address, Dictionary<string, object> merge_vars, EnumValues.emailType email_type, bool double_optin, bool update_existing, bool replace_interests, bool send_welcome ) 
+5
source

All Articles