Esempio n. 1
0
 /**
  * Sends an email using the Postmark Email API.
  *
  * @return void
  */
 protected function _sendWithPostmark()
 {
     $client = new \Postmark\PostmarkClient(Settings::config()->postmark_api_key);
     $client->sendEmail(Settings::config()->sendmail_email, $this->email, $this->subject, $this->message);
 }
Esempio n. 2
0
 /**
  * Sends an email using the Postmark Email API.
  *
  * @return void
  */
 protected function _sendWithPostmark()
 {
     try {
         $client = new \Postmark\PostmarkClient(Settings::config()->transport_token);
         $client->sendEmail(Settings::config()->transport_email, $this->email, $this->subject, $this->message);
     } catch (\Exception $e) {
         Debugger::log($e);
     }
 }