freshJet Posted July 25, 2011 Report Share Posted July 25, 2011 Is there a code to trigger an email to a pilot when they are awarded an award? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted July 25, 2011 Moderators Report Share Posted July 25, 2011 Nope but you could create a module for it. Quote Link to comment Share on other sites More sharing options...
Kairon Posted July 31, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
thomas2360 Posted August 18, 2011 Report Share Posted August 18, 2011 Can you help me because I don't understand very well your instructions. Regards, Quote Link to comment Share on other sites More sharing options...
Guest Posted October 4, 2011 Report Share Posted October 4, 2011 dont work for me Quote Link to comment Share on other sites More sharing options...
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.