Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-21-2013, 10:51 AM #1
- Join Date
- Jan 2013
- Bristol, UK
- Thanked 0 Times in 0 Posts
Auto adding emails to mail chimp database form contact form
I bought popular contact form from code canyon (which works great) and I am looking for a way to automatically add the email addresses it captures into my mail chimp account.
Currently I have to extract all the addresses from the emails manually.
Does anyone know or can point me in the right direction of the php i need to use?
01-21-2013, 01:54 PM #2
- Join Date
- Feb 2011
- Your Monitor
- Thanked 529 Times in 516 Posts
mail chimp is an email blaster so I don't think many people will want to help you subscribe people to spam.. but here is another suggestion.
Setup your own mailing list on your site. At least then you have half a chance of people helping you to do what you want because the database will be on the same server. Anything to do with mail chimp will require someone here to sign up, write code using cURL, test, retest, retest again etc. I really don't see that happening for free.
If you're looking to do it yourself, you're going to need to setup a cURL handler for a http request and then login to mail chimp, browse to your contacts page, submit the email by post and then logout - all while handling the cookies (so you're going to need a pretty solid understanding of those plus request and reply headers too).
See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/
Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!