Edit admin email notification

Discussion in 'Troubleshooting' started by thegembank, Mar 6, 2012.

  1. thegembank

    thegembank New Member

    Joined:
    Jan 14, 2011
    Messages:
    4
    I think this is a simple one...

    For now, I only a have free registration.

    I only have a default admin email notification.. how can I edit it to have the name email (and profile link if possible).

    I can't find that option on the "Email" tab of "Setup/Configuration"
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Sorry, what exactly message do you want to customize? What is the subject?
  3. tomf

    tomf New Member

    Joined:
    Sep 5, 2010
    Messages:
    1
    You may be talking about the autoresponder. Admin CP> Protect Content> Email Messages> Autoresponder.
  4. thegembank

    thegembank New Member

    Joined:
    Jan 14, 2011
    Messages:
    4
    Hi... sorry for the late reply..

    I'm using the free registration....

    New user was signed up today.
    Please login and check it:

    I want to edit this message.. and add the new member Name, Email, other details.
    I just want to add some details.. so that I don't have to login and see the name and email.

    The subject of the email is
    *** New Signup ***

    I want it similar to this

    New user was signed up today.

    Name: John Doe
    Email: email@gmail.com
    Website: ......(if this is no possible its okay... just name and email is fine)
    Please login and check it:

    I saw the function in free.inc.php,
    signup_moderator_mail($payment_id, $member_id, &$vars)

    I'm not sure how to add the name, email andd

    Thanks
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Modify that function:
    PHP:
       function signup_moderator_mail($payment_id$member_id, &$vars){
            global 
    $config$db;
            
    $admin_url $config['root_url'] . '/admin';
            
    mail_admin("
            New user was signed up today..
            Please login and check it:
            
    $admin_url/users.php?action=edit_payment&payment_id=$payment_id&member_id=$member_id
            "
    "*** New Signup ***");
        }

    to
    PHP:
       function signup_moderator_mail($payment_id$member_id, &$vars){
            global 
    $config$db;
            
    $admin_url $config['root_url'] . '/admin';
            
    $u $db->get_user($member_id);
            
    mail_admin("
            New user was signed up today..
            Name: 
    $u[name_f] $u[name_l]
            Email: 
    $u[email]
            Please login and check it:
            
    $admin_url/users.php?action=edit_payment&payment_id=$payment_id&member_id=$member_id
            "
    "*** New Signup ***");
        }

Share This Page