示例#1
0
 public static function getInstance()
 {
     if (!Swift_TransportFactory::check_mail_vars()) {
         return false;
     }
     if (is_null(self::$instance)) {
         self::$instance = Swift_MailTransport::newInstance();
     }
     return self::$instance;
 }