$ecard->teamEmailList = $teamEmailList; ?> <div class="ecardPadding"> <?php // get first team member $ecard->full_name = $firstPersonEmpNum->Fname . ' ' . $firstPersonEmpNum->Sname; $ecard->Fname = $ecard->Team; if ($ecard->Volunteer != '') { $ecard->NomFull_name = $ecard->Volunteer; } else { $ecard->NomFull_name = getName($ecard->NominatorEmpNum); } $ecard->NomFname = getFirstName($ecard->NominatorEmpNum); if ($ecard->littleExtra == 'Yes') { echo indEcardTeamExtraText($ecard); } else { echo indEcardTeamText($ecard); } ?> <p>Thank you and well done!</p> <p><b>Our Heroes Team</b></p> <p class="small">Xexec ref: <?php echo $ecard->ID; ?> </p> </div> <div class="ourheroes"> <img class="emailCruklogo" src="<?php echo HTTP_PATH; ?>
$award->NomFull_name = $award->Volunteer; } else { $award->NomFull_name = $award->nominator()->full_name; } $award->NomFname = $award->nominator()->Fname; $award->firstPerson = $firstPerson; //print_r($award); // send email to nominee foreach ($TeamMembers as $list) { $award->teamEmailList = $teamEmailList; $award->Fname = $list->Fname; $award->full_name = $list->Fname . ' ' . $list->Sname; //need to get offline... //$award->teamNominees()->Offline = ; //also need to send to LM $award->content = indEcardTeamExtraText($award); echo $award->content; // check if offline if ($award->teamNominees()->Offline == 'Y') { // they in a shop so considered offline. need to fix email with all requirements. will need to get from Jamie $sendEmail = new StdClass(); $sendEmail->emailTo = $xexecEmail; $sendEmail->Cc = '*****@*****.**'; $sendEmail->subject = 'E-Card Award Notification'; $sendEmail->Content = "<p>Hi</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>" . $award->nominator()->full_name . " has nominated " . $award->teamEmailList . " to receive a Thank you card as part of an Our Heroes Award.</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Below is the content of the card:</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>" . $award->content . "</p>"; $email = sendEmail($sendEmail, 'T' . $ID); echo "offline email sent to xxexec"; $_SESSION['alreadydone'] = 'yes'; } else { $award->Eaddress = $list->Eaddress; if (filter_var($award->Eaddress, FILTER_VALIDATE_EMAIL)) {