/**
  * Get Email replacement variables for from data and to data
  * @param $from
  * @param $to
  * @return array
  */
 private function getEmailVars($from, $to)
 {
     if ($to['elites'] >= 1) {
         $firstgen_elt = 0;
     } else {
         $firstgen_elt = 1;
     }
     return array('rcpt' => $from['from_email'], 'vars' => array(array('name' => 'PRS', 'content' => number_format($to['prs'] / 100, 2)), array('name' => 'ACTIVEPRS', 'content' => number_format($to['active_prs'] / 100, 2)), array('name' => 'PRS_Needed', 'content' => number_format(PRSCalc::getPRSNeeded($to['active_prs']), 2)), array('name' => 'NEW_REC_STATUS', 'content' => ucwords($to['recognized_status'])), array('name' => 'LIFETIME_REMAINING', 'content' => number_format(PRSCalc::getRemainingPRS($from['near_status'], $to), 2)), array('name' => 'REMAINING_PRS', 'content' => number_format(PRSCalc::getRemainingPRS($from['near_status'], $to), 2)), array('name' => 'REMAINING_CoWS', 'content' => number_format(PRSCalc::getRemainingCoWS($from['near_status'], $to['company']), 2)), array('name' => 'REMAINING_QFL', 'content' => PRSCalc::getRemainingQFL($from['near_status'], $to['active'])), array('name' => 'REMAINING_CiWS', 'content' => number_format(PRSCalc::getRemainingCiWS($from['near_status'], $to['gen0']), 2)), array('name' => 'FAST_START_END', 'content' => $to['fast_start_end']), array('name' => 'LIFETIME_PRS', 'content' => number_format($to['lifetime_prs'] / 100, 2)), array('name' => 'REMAINING_ELT', 'content' => $firstgen_elt)));
 }