Jump to content

Pilot Notification When Award Added?


freshJet

Recommended Posts

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 :huh:

Thumbs up :)

  • Like 4
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...