User registration email

A place to discuss and receive support for the Web Auction application.

User registration email

Postby Todor » Wed Aug 06, 2008 10:18 pm

Hi Steve,
I know that you had helped me out a lot already, but i am still struggling with this one last bit of change i need to make:
Upon registration, instead of the usual process, i would like an email to be sent to the administrator with the data that was submitted by the new user, so that the admin can manually enter it in the database later.
So far, i had modified include/functions.inc.php' registerUser() function to include:
function registerUser(){
if ( isRegistered() ) return;
$user =& getUser();
$user->setValue('role','USER');
$user->save();
sendAdminEmail('A new user would like to register', getLDAPUserInfo($userid));
}

however, i cant get it to work. what am i doing wrong? thank you in advance.

-Todor
Todor
 
Posts: 8
Joined: Wed Jun 25, 2008 10:42 am

Postby shannah » Fri Aug 08, 2008 1:33 pm

Hi Todor,

Sorry for the registerUser() function --- it is unused -- a remnant of a previous version used within the university.

However there is another solution. Perhaps implement the sendRegistrationActivationEmail() method in the application delegate class.

You may also want to change the info message they get after registration too to reflect the new process.

You can do that by adding the following to your lang/en.ini file:
Code: Select all
actions.register.MESSAGE_THANKYOU_PLEASE_VALIDATE = "Thanks for registering ... awaiting administrator approval"
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

thanks

Postby Todor » Mon Aug 11, 2008 10:01 pm

Thank you, that worked great

-Todor
Todor
 
Posts: 8
Joined: Wed Jun 25, 2008 10:42 am


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 23 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved