本文整理汇总了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');
}
示例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);
}
示例3: __construct
public function __construct($charset = 'UTF-8')
{
parent::__construct($charset);
if (!is_null(self::$_email)) {
parent::setFrom(self::$_email, self::$_name);
}
}
示例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');
}
示例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);
}
示例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();
}
示例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();
}
示例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']);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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();
}
示例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");
}
示例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();
}
}