intergrate buddypress registration with a mailing list
-
Hi, im using a script called interspire send studio.
The scipt uses a basic form, which has a field for an email address, and a post button. No other action is required.
I just want to intergrate this seamlessly so when users are signing up to my buddypress site they automatcially register for the mailing list. How do i go about doing this?
I have the following wrapper code from ther site:
‘
1. <?php
2. $data = array(
3. ‘format’ => ‘h’,
4. ’email’ => $_POST[‘txtEmail’]
5. );
6. $ch = curl_init(CONST_YOUR_IEM_URL . ‘/form.php?form=’ . CONST_YOUR_FORMID);
7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
8. curl_setopt($ch, CURLOPT_POST, 1);
9. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
10.
11. $response = @curl_exec($ch);
12. curl_close($ch);
13. // Response will contains Interspire Email Marketer response to your subscription.
14. // It will either be success (Thank you page)
15. // Or it will contains the error page
16. ?>
‘
How do i intergate it? thanks
- The topic ‘intergrate buddypress registration with a mailing list’ is closed to new replies.