public function send() { if (!isset($this->to) or !isset($this->subject) or !isset($this->body)) { return false; } if (Config::get('email.type') == 'postmark') { return Postmark::send(array('From' => Config::get('email.from'), 'To' => $this->to, 'Subject' => $this->subject, 'HtmlBody' => $this->body)); } }
$errors = $e->getMessage(); Session::flash('error', $e->getMessage()); $registration = FALSE; } } else { return Xysti::error(500, 'Unknown authentication driver.'); } // Registration was a success if ($registration) { // User activation email.. if (0) { $postmark = new Postmark(); $postmark->to(); $postmark->subject('Chim chim on the loose again'); $postmark->txt_body('Hey Speed, Please keep Spritle and Chim chim in line. Love, Racer X.'); $response = $postmark->send(); } if (function_exists('registration_callback')) { return registration_callback(); } return Xysti::success_redirect(); // Registration failed.. } else { Session::flash('warning', 'Registration failed'); } return Xysti::make(); })); } /** * Activate a new user and log them in * @todo Finish email authentication mechanism