当前位置: 首页>>代码示例>>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;未经允许,请勿转载。