phpScheduleIt
May 19, 2013, 03:12:20 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Email Admin  (Read 331 times)
meg31
Newbie
*

Karma: 0
Posts: 31


« on: May 01, 2012, 05:46:20 PM »

Does anyone know how or which file I need to look at so when someone creates an account it emails someone. I am not too familiar with php and I am not sure where to change this so I can have this added feature.
Logged
meg31
Newbie
*

Karma: 0
Posts: 31


« Reply #1 on: May 01, 2012, 06:00:18 PM »

Sorry let me clarify a little bit. When someone creates a new account once they select "register" after filling out all the forms I want it to be able to email someone. I have looked at Pages/RegistrationPage.php and I am not sure if I need to change something there or if there is a script file somewhere that I need to edit. Any help would be greatly appreciated.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #2 on: May 08, 2012, 01:22:49 PM »

Right now there is no email sent out after registration. Adding one will involve some customization. You'll need to create a new object that extends EmailMessage in lib/Application/Email/Messages (see ForgotPasswoord in there for an example). You'll then need to send that from the RegistrationPresenter Register function.

Something like: ServiceLocator::GetEmailService()->Send(new RegistrationEmail());
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!