Jump to content

Simple MailChimp module


Juanzo

Recommended Posts

Since we didn't find a way to automatically add a subscriber to our MailChimp list each time WHMcs created a new client, we thought we would create one.

 

To make it work, you need to:

  1. Download the script from here
  2. Unzip it and complete your API Key and List ID
  3. Upload the .php file to whmcs/includes/hook

 

Inside the unecoded PHP file you'll see how to obtain the API Key and the List ID. Also please remember that by default, MailChimp enables double optin on mails added through the API so you'll have to edit the file to disable it.

Link to comment
Share on other sites

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
Another useful feature would be to somehow to allow subscription to different lists. Perhaps this could be based on custom fields in the WHMCS user profile?

 

This way we could allow customers to subscribe to newsletters, server alerts, marketing communications etc.

Yes, that would be nice, althought you could just use the built in WHMCS mailer to all your clients or just those on a certain product/service or server.

 

But I do like the idea to allow the end user optin.

Link to comment
Share on other sites

  • 5 weeks later...
  • 3 weeks later...

Amazing - love that.

Has anyone made a simple api/hook for Campaign Monitor?

It would be absolutely wonderful.

 

The one feature request I have for either Mail Chimp or Campaign Monitor would be the ability to add custom fields - such as service domain and/or product group with each successful signup.

 

Juanzo, would you be open to crafting this simple functionality for CM? And, or add custom field options to Mail Chimp?

 

Superb,

 

Tim

 

1e42414698ee0f3aef1ee2d9e9c33af9?s=48&d=wavatar&r=G

@tgrifff

Mission: Communicate

Facebook Fan Page

Get an effective web presence that will amaze you - and others too!

Link to comment
Share on other sites

  • 1 month later...
Unfortunately I'm not using MailChimp anymore to keep adding new features, but anyone is welcome to improve the module :)

 

Hello Juanzo,

 

Can I ask why you stopped using Mailchimp and what are you using now that works with WHMCS?

Link to comment
Share on other sites

  • 1 month later...
Hi There, mine does not work as all, have I missed something here? I put in my API Key and List ID but no subscription. I can see the API call in MailChip but it is red (assuming error) can anyone help ? thanks.

 

Did you ever get this working as I'm having the same problem.

 

My data centre is us2 so I have added that line to the code, but still no joy :cry:

 

Anyone got suggestions on how to investigate?

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

cant u just append &groups=XXX to the end of the url in the file when you edit it?

 

$url = "http://api.mailchimp.com/1.2/?output=php&method=listSubscribe&apikey=$api_key&id=$list_id&email_address=$email&merge_vars[FNAME]=$first_name&merge_vars[LNAME]=$last_name&groups=XXXXX";

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated