PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Adding ccaps info to notification email

s2Member Plugin. A Membership plugin for WordPress®.

Adding ccaps info to notification email

Postby startasocialnetwork » February 14th, 2011, 8:11 pm

Hey Jason,

I'm using your alert.php file to override WP's default email notification message, as a way of integrating with aweber.

So far it's rocked. With a new site, though, I want to use your custom capabilities function to create packages, rather than relying on membership levels.

How can I swap out the level in the code below with ccaps (or some other way of tracking the package the customer bought)?

Code: Select all
<?php
function wp_new_user_notification () { /* Disables default email with username/password. */}
add_action ("ws_plugin__s2member_during_configure_user_registration", "my_email_function");
function my_email_function ($vars = array ())
   {
      $email = $vars["email"];
      $first_name = $vars["fname"];
      $last_name = $vars["lname"];
      $full_name = $vars["name"];
      $username = $vars["login"];
      $password = $vars["pass"];
      $level = $vars["level"];
      /* Add something here. */
      mail ("ric.mazexxxxx@gmail.com,xxxxx@aweber.com",/**/
      "New Sub", "username: " . $username . "\npassword: " . $password . "\nName: " . $full_name . "\nemail: " . $email,/**/
      "From: xxxx@xxxxxanual.com\r\nContent-Type: text/plain; charset=utf-8", "-f xxxxx@xxxxxxmanual.com");
   }
?>


This plugin rocks: It will be great if I can somehow incorporate ccaps, or even the custom variables, from the Pro forms...

Thanks

R
User avatar
startasocialnetwork
Registered User
Registered User
 
Posts: 23
Joined: October 8, 2010
Location: Vancouver, BC

Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 12 guests

cron