<?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");
}
?>
Statistics: Posted by startasocialnetwork — February 14th, 2011, 8:11 pm