Juanzo Posted November 5, 2010 Share Posted November 5, 2010 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: Download the script from here Unzip it and complete your API Key and List ID 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. 0 Quote Link to comment Share on other sites More sharing options...
factor Posted November 9, 2010 Share Posted November 9, 2010 Thank you very much, i'm using it and it works like a charm ;-) 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted November 9, 2010 Share Posted November 9, 2010 Thanks for this. Depending on the datacenter, you may have to add us2 to the url: http://us2.api.mailchimp.com... 0 Quote Link to comment Share on other sites More sharing options...
columbusgeek Posted November 14, 2010 Share Posted November 14, 2010 thanks so much. 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted November 15, 2010 Author Share Posted November 15, 2010 Glad it was useful guys. If anyone wants to improve or change anything, let me know! 0 Quote Link to comment Share on other sites More sharing options...
columbusgeek Posted November 15, 2010 Share Posted November 15, 2010 The only thing I can think of is possibly hooking it into the ticket system as well? I tend to run all my contact from people through the ticketing area. Ethically I am not sure if that is smart though. 0 Quote Link to comment Share on other sites More sharing options...
seandnz Posted November 15, 2010 Share Posted November 15, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
thernes Posted November 16, 2010 Share Posted November 16, 2010 Did you try this; Thanks for this. Depending on the datacenter, you may have to add us2 to the url: http://us2.api.mailchimp.com... 0 Quote Link to comment Share on other sites More sharing options...
GobalaKrishnan Posted December 1, 2010 Share Posted December 1, 2010 (edited) Can you create one for Aweber? <<snipped>> Edited December 1, 2010 by bear not allowed 0 Quote Link to comment Share on other sites More sharing options...
Jo Stonehouse Posted December 7, 2010 Share Posted December 7, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted December 8, 2010 Share Posted December 8, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
00Dante Posted December 14, 2010 Share Posted December 14, 2010 This looks pretty cool. Bookmarked - thanks. 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted December 15, 2010 Share Posted December 15, 2010 Is there a way to define a group to put the signups in within a list? It looks like right now everything will just go into the default list but can not specify a group within a list... 0 Quote Link to comment Share on other sites More sharing options...
RAINFIRE Posted December 15, 2010 Share Posted December 15, 2010 Since we didn't find a way to automatically add a subscriber to our Thanks, I just signed up for MailChimp. 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted December 15, 2010 Author Share Posted December 15, 2010 Is there a way to define a group to put the signups in within a list? It looks like right now everything will just go into the default list but can not specify a group within a list... That would be a nice feature to add, I'd use it! 0 Quote Link to comment Share on other sites More sharing options...
JofleyUK Posted January 13, 2011 Share Posted January 13, 2011 Is there a way to define a group to put the signups in within a list? It looks like right now everything will just go into the default list but can not specify a group within a list... I would like to see this aswell.. kudos for the script btw. 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted January 28, 2011 Share Posted January 28, 2011 Thanks for this hook! Is it possible to make it update the email in mailchimp when a client changes email in whmcs ? Cheers 0 Quote Link to comment Share on other sites More sharing options...
tgriff Posted February 1, 2011 Share Posted February 1, 2011 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 @tgrifff Mission: Communicate Facebook Fan Page Get an effective web presence that will amaze you - and others too! 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted February 2, 2011 Author Share Posted February 2, 2011 Unfortunately I'm not using MailChimp anymore to keep adding new features, but anyone is welcome to improve the module 0 Quote Link to comment Share on other sites More sharing options...
bbhost Posted March 7, 2011 Share Posted March 7, 2011 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? 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted March 9, 2011 Author Share Posted March 9, 2011 Mailchimp is a great service but we are using our own email marketing, hosted solution, which integrates with any MySQL database without any problems. 0 Quote Link to comment Share on other sites More sharing options...
sparxdes Posted March 10, 2011 Share Posted March 10, 2011 Juanzo - that looks like a nice solution, is it rebranded from anything else or a custom one you developed? 0 Quote Link to comment Share on other sites More sharing options...
lightbeing creations Posted May 7, 2011 Share Posted May 7, 2011 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 Anyone got suggestions on how to investigate? 0 Quote Link to comment Share on other sites More sharing options...
SK54602 Posted May 18, 2011 Share Posted May 18, 2011 I keep getting a debugging in activity log, is this normal or is something wrong? "Debugging: MailChimp Hook - URL: http://us2.api.mailchimp.com" 0 Quote Link to comment Share on other sites More sharing options...
WebCommand Posted May 30, 2011 Share Posted May 30, 2011 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"; 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.