set('Errors-to', '<' . Controller::getEnvironmentData('SMTP_ERROR') . '>'); $this->set('MIME-Version', '1.0'); $this->set('Content-Type', 'text/html; charset=ISO-8859-1'); } /** * send mail to removed user account * @param $to * @param $msg * @return bool */ public function sendDeleteAccount($to, $msg){ $this->set('To', '<' . $to . '>'); $this->set('From', '"Pathfinder" <' . Controller::getEnvironmentData('SMTP_FROM') . '>'); $this->set('Subject', 'Account deleted'); $status = $this->send($msg); return $status; } /** * send notification mail for new rally point systems * @param $to * @param $msg * @return bool */ public function sendRallyPoint($to, $msg){ $this->set('To', '<' . $to . '>'); $this->set('From', '"Pathfinder" <' . Controller::getEnvironmentData('SMTP_FROM') . '>'); $this->set('Subject', 'PATHFINDER - New rally point'); $status = $this->send($msg); return $status; } }