Community Support Forums — WordPress® ( Users Helping Users ) — 2011-02-14T20:11:33-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2288 2011-02-14T20:11:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2288&p=6722#p6722 <![CDATA[Adding ccaps info to notification email]]>
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:
<?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

Statistics: Posted by startasocialnetwork — February 14th, 2011, 8:11 pm


]]>