• Hello,
    I’ve been trying to set a URL in the API registration section to collect signups and integrate with MadMimi: First I made a .php file – s2-mail-notifications.php with this code:
    <?php

    require(‘MadMimi.class.php’);
    $mailer = new MadMimi(‘my mm email’, ‘my mm api’);

    $user = array(
    ‘add_list’ => $_GET[‘list’],
    ’email’ => $_GET[’email’],
    ‘firstName’ => $_GET[‘first_name’],
    ‘lastName’ => $_GET[‘last_name’],
    ‘ip’ => $_GET[‘user_ip’],
    );

    $mailer->AddUser($user);

    I want the users name and email, so from the KB article I followed the path of:
    http://mysite.com/mu-plugins/?s2-email-notification=yes&user_email=%%user_email%%&user_first_name=%%user_first_name%%&user_last_name=%%user_last_name%%

    It didn’t quite work, I got a white screen error – I did forget the user id which is listed in the php code…could that have made it not work? No .php on the end of my file name? Any ideas on what I did wrong here? I’m afraid to try it again! Thanks if you can help me out! Theresa

    https://wordpress.org/plugins/s2member/

  • The topic ‘API notification-Registration-MadMimi’ is closed to new replies.