freshJet Posted July 25, 2011 Report Posted July 25, 2011 Is there a code to trigger an email to a pilot when they are awarded an award? Quote
Moderators mark1million Posted July 25, 2011 Moderators Report Posted July 25, 2011 Nope but you could create a module for it. Quote
Kairon Posted July 31, 2011 Report Posted July 31, 2011 You can do this: Search this: AwardsData::AddAwardToPilot($this->post->pilotid, $this->post->awardid); Add this after in: admin/modules/PilotAdmin/PilotAdmin.php # Send an email to the admin that a PIREP was submitted $sub = "Add Award for you"; $message="Dear; {$pilot->firstname} {$pilot->lastname}, <p>" ."Contrulations! Add award for you...<p>"; $email = Config::Get('EMAIL_NEW_AWARD'); if(empty($email)) { $email = $pilot->email; } Util::SendEmail($email, $sub, $message); Sorry for my bad english Thumbs up 4 Quote
thomas2360 Posted August 18, 2011 Report Posted August 18, 2011 Can you help me because I don't understand very well your instructions. Regards, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.