Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Change info in admin verification email  (Read 4523 times)

0 Members and 1 Guest are viewing this topic.

MaxxFusion

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
    • Affordable Ecommerce Solutions
Change info in admin verification email
« on: February 04, 2006, 09:45:58 pm »

I want to change the info that gets sent to the admin one a new registration.  Right now the admin gets an email stating "username" has signed up.  I would like to include the email address and possiy a couple of the Profile fields in this email.  That way it will be easy to idnetify the user that is registering.

Thanks,
Frank

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Change info in admin verification email
« Reply #1 on: February 05, 2006, 10:48:29 am »

in db_input.php the email gets sent
Code: [Select]
                cpg_mail('admin', sprintf($lang_db_input_php['notify_admin_email_subject'], $CONFIG['gallery_name']), sprintf($lang_db_input_php['notify_admin_email_body'], USER_NAME,  $CONFIG['ecards_more_pic_target'].(substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .'editpics.php?mode=upload_approval' ));

before you'll have to add a sql query and read what you need from the users table. Add that to the var $lang_db_input_php['notify_admin_email_body']

the actual email subject and body can be found in the language files

MaxxFusion

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
    • Affordable Ecommerce Solutions
Re: Change info in admin verification email
« Reply #2 on: February 05, 2006, 03:48:30 pm »

Do you have an example of what that query would look like?

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Change info in admin verification email
« Reply #3 on: February 05, 2006, 07:34:03 pm »

had a look at it again... it's in register.php

Code: [Select]
                                                        cpg_mail('admin', sprintf($lang_register_php_def['notify_admin_email_subject'], $CONFIG['gallery_name']), sprintf($lang_register_php_def['notify_admin_email_body'], $user_name));

You won't need a query but can use the vars $_POST['user_profile1'] - $_POST['user_profile6']

looks somehow like
Code: [Select]
$mailbody = $lang_register_php_def['notify_admin_email_body']."\n".$_POST['user_profile1']."\n".$_POST['user_profile1']."\n";
cpg_mail('admin', sprintf($lang_register_php_def['notify_admin_email_subject'], $CONFIG['gallery_name']), sprintf($mailbody, $user_name));
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.