當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Mail::__construct方法代碼示例

本文整理匯總了PHP中Zend_Mail::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Mail::__construct方法的具體用法?PHP Zend_Mail::__construct怎麽用?PHP Zend_Mail::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Mail的用法示例。


在下文中一共展示了Zend_Mail::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($mustNotBeSet = null)
 {
     if ($mustNotBeSet) {
         throw new Kwf_Exception("Kwf_Mail got replaced with Kwf_Mail_Template");
     }
     parent::__construct('utf-8');
 }
開發者ID:xiaoguizhidao,項目名稱:koala-framework,代碼行數:7,代碼來源:Mail.php

示例2: __construct

 /**
  * Constructor
  * 
  * Override default charset to output encoding.
  *
  * @param string|null $charset
  */
 public function __construct($charset = null)
 {
     if ($charset === null) {
         $charset = 'utf-8';
     }
     parent::__construct($charset);
 }
開發者ID:bombayworks,項目名稱:currycms,代碼行數:14,代碼來源:Mail.php

示例3: __construct

 public function __construct($charset = 'UTF-8')
 {
     parent::__construct($charset);
     if (!is_null(self::$_email)) {
         parent::setFrom(self::$_email, self::$_name);
     }
 }
開發者ID:BGCX261,項目名稱:zmz-svn-to-git,代碼行數:7,代碼來源:Mail.php

示例4: __construct

 public function __construct($charset = 'iso-8859-1')
 {
     if (!file_exists(APPLICATION_PATH . '/configs/mail.ini')) {
         throw new Exception('Mail configuration does not exist.');
     }
     parent::__construct($charset = 'iso-8859-1');
 }
開發者ID:highfidelity,項目名稱:love,代碼行數:7,代碼來源:Mail.php

示例5: __construct

 /**
  * Create an instance of Ip.
  *
  * @return  object
  */
 public function __construct($charset = NULL)
 {
     parent::__construct($charset);
     $this->config = Kohana::config('mail');
     Zend_Loader::loadClass("Zend_Mail_Transport_Smtp");
     $this->driver = new Zend_Mail_Transport_Smtp($this->config['host'], $this->config);
 }
開發者ID:RenzcPHP,項目名稱:3dproduct,代碼行數:12,代碼來源:Mail_z.php

示例6: __construct

 /**
  * Constructor.
  *
  * @param string $charset The charset to set for the email content.
  */
 public function __construct($charset = 'iso-8859-1')
 {
     parent::__construct($charset);
     // We need the view ivar immediately, since users of this class may need
     // to set view variables on it before calling the setBody* methods.
     $this->_createView();
 }
開發者ID:namesco,項目名稱:ztal,代碼行數:12,代碼來源:Mail.php

示例7: __construct

 /**
  *
  * @param string $charset
  */
 public function __construct($charset = 'UTF-8')
 {
     parent::__construct($charset);
     $this->view = Axis::app()->getBootstrap()->getResource('layout')->getView();
     $this->view->addScriptPath(Axis::config('system/path') . '/app/design/mail');
     $this->view->site = Axis::getSite()->name;
     $this->view->company = Axis::single('core/site')->getCompanyInfo();
 }
開發者ID:rguedes,項目名稱:axiscommerce,代碼行數:12,代碼來源:Mail.php

示例8: __construct

 /**
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     StaticConfigurator::setOptions($this, $options);
     if (!isset($options['charset'])) {
         $options['charset'] = 'utf-8';
     }
     parent::__construct($options['charset']);
 }
開發者ID:finalclass,項目名稱:netcore,代碼行數:12,代碼來源:Mail.php

示例9: __construct

 /**
  * Construtor
  * @param string $charset 
  */
 public function __construct($charset = 'utf-8')
 {
     /* Sobrescrita */
     parent::__construct($charset);
     /* Camada de Visualização */
     $view = new Zend_View();
     $this->setView($view);
 }
開發者ID:laiello,項目名稱:wanderson,代碼行數:12,代碼來源:Html.php

示例10: __construct

 public function __construct($to, $toName = '', $subject = '', $encoding = 'UTF-8')
 {
     parent::__construct($encoding);
     $this->log = Zend_Registry::get('log');
     $this->addTo($to, $toName);
     $this->setFrom(self::FROM_EMAIL, self::FROM_NAME);
     $this->setSubject($subject);
     #		$this->setEncoding($encoding);
     $this->html = false;
 }
開發者ID:vishaleyes,項目名稱:cookingwithzend,代碼行數:10,代碼來源:Email.php

示例11: __construct

 /**
  * Constructor.
  *
  * @param string $charset The charset to set for the email content.
  */
 public function __construct($charset = 'iso-8859-1')
 {
     if (!Zend_Registry::isRegistered('Ztal_View')) {
         throw new Exception('No available Ztal View');
     }
     $this->view = clone Zend_Registry::get('Ztal_View');
     $this->view->layout()->disableLayout();
     $this->view->setCompressWhitespace(true);
     parent::__construct($charset);
 }
開發者ID:jo-m,項目名稱:ecamp3,代碼行數:15,代碼來源:Mail.php

示例12: __construct

 /**
  * Constructor
  * 
  * Override default charset to output encoding.
  *
  * @param string|null $charset
  */
 public function __construct($charset = null)
 {
     if (!self::$initialized) {
         self::initMail();
     }
     if ($charset === null) {
         $charset = Curry_Core::$config->curry->outputEncoding;
     }
     parent::__construct($charset);
 }
開發者ID:varvanin,項目名稱:currycms,代碼行數:17,代碼來源:Mail.php

示例13: __construct

 /**
  * @param string $charset
  */
 public function __construct($charset = "utf8")
 {
     $config = Zend_Registry::get("__CONFIG__");
     $this->emailOption = $config["email"];
     $this->charset = $charset;
     parent::__construct($charset);
     $this->_view = new Zend_View();
     $this->_view->setScriptPath(APPLICATION_PATH . $this->viewScriptPath);
     /** @var $request Zend_Controller_Request_Http */
     $request = Zend_Controller_Front::getInstance()->getRequest();
 }
開發者ID:tudorfis,項目名稱:php-api,代碼行數:14,代碼來源:HtmlMailer.php

示例14: __construct

 public function __construct()
 {
     /*if (!self::$initialized) {
           $mailConfig = VC_Config::getConfig('mail');
           //var_dump($mailConfig); die;
           $host = $mailConfig['server'];
           unset($mailConfig['server']);
           $transport = new Zend_Mail_Transport_Smtp($host, $mailConfig);
           Zend_Mail::setDefaultTransport($transport);
           self::$initialized = true;
       }*/
     parent::__construct("utf-8");
 }
開發者ID:BGCX261,項目名稱:zillatek-project-svn-to-git,代碼行數:13,代碼來源:Mailer.php

示例15: __construct

 /**
  * @param string $charset
  */
 public function __construct($charset = "utf8")
 {
     $config = Zend_Registry::get("__CONFIG__");
     $this->emailOption = $config["email"];
     $this->charset = $charset;
     parent::__construct($charset);
     $this->_view = new Zend_View();
     $this->_view->setScriptPath(APPLICATION_PATH . $this->viewScriptPath);
     /** @var $request Zend_Controller_Request_Http */
     $request = Zend_Controller_Front::getInstance()->getRequest();
     // set Default domain for link creation
     if (!is_null($request)) {
         // set Default domain for link creation
         $this->domain = $request->getScheme() . '://' . $request->getHttpHost() . $request->getBaseUrl();
     }
 }
開發者ID:tudorfis,項目名稱:urfx,代碼行數:19,代碼來源:HtmlMailer.php


注:本文中的Zend_Mail::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。