Exemplo n.º 1
0
 protected function call_mandrill($email_data)
 {
     $email_service = null;
     $s = null;
     require_once '../sources/mandrill.php';
     $email_service = new mandrill($email_data);
     $s = $email_service->send();
     return $s;
 }
Exemplo n.º 2
0
 /**
  * Public function that creates a single instance
  */
 public static function getInstance()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }