set('Errors-to', '' . Controller::getEnvironmentData('SMTP_ERROR') . '>'); } /** * send registration key * @param $to * @param $msg * @return bool */ public function sendRegistrationKey($to, $msg){ $this->set('To', '<' . $to . '>'); $this->set('From', 'Pathfinder <' . Controller::getEnvironmentData('SMTP_FROM') . '>'); $this->set('Subject', 'Registration Key'); $this->set('Error-To', '<' . Controller::getEnvironmentData('SMTP_ERROR') . '>'); $this->set('MIME-Version', '1.0'); $this->set('Content-Type', 'text/html; charset=ISO-8859-1'); $status = $this->send($msg); return $status; } }