Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2013, 10:51 AM   PM User | #1
ChrisL_57
New to the CF scene

 
Join Date: Jan 2013
Location: Bristol, UK
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
ChrisL_57 is an unknown quantity at this point
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?
ChrisL_57 is offline   Reply With Quote
Old 01-21-2013, 01:54 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,513
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
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).
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Tags
mailchimp, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:11 AM.


Advertisement
Log in to turn off these ads.