Esempio n. 1
0
 public function SendMailMatricula($OM, $idS)
 {
     if ($OM->getEstat() == MatriculesPeer::ACCEPTAT_PAGAT) {
         $this->sendMail(OptionsPeer::getString('MAIL_FROM', $this->IDS), $OM->getUsuaris()->getEmail(), 'Resguard de matrícula', MatriculesPeer::MailMatricula($OM, $idS));
         $this->sendMail(OptionsPeer::getString('MAIL_FROM', $this->IDS), '*****@*****.**', 'Resguard de matrícula', MatriculesPeer::MailMatricula($OM, $idS));
     } else {
         $this->sendMail(OptionsPeer::getString('MAIL_FROM', $this->IDS), $OM->getUsuaris()->getEmail(), 'Problema en realitzar matrícula', MatriculesPeer::MailMatriculaFAIL($OM, $idS));
         $this->sendMail(OptionsPeer::getString('MAIL_FROM', $this->IDS), '*****@*****.**', 'Problema en realitzar matrícula', MatriculesPeer::MailMatriculaFAIL($OM, $idS));
     }
 }