Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2013
    Location
    Bristol, UK
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Auto adding emails to mail chimp database form contact form

    Hi,
    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?

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,341
    Thanks
    60
    Thanked 527 Times in 514 Posts
    Blog Entries
    4
    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!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •