예제 #1
0
 public static function getInstance($sendmail_path)
 {
     if (!Swift_TransportFactory::check_mail_vars()) {
         return false;
     }
     if (is_null(self::$instance)) {
         self::$instance = Swift_SendmailTransport::newInstance($sendmail_path);
     }
     return self::$instance;
 }