public function __construct($mustNotBeSet = null) { if ($mustNotBeSet) { throw new Kwf_Exception("Kwf_Mail got replaced with Kwf_Mail_Template"); } parent::__construct('utf-8'); }
/** * 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); }
public function __construct($charset = 'UTF-8') { parent::__construct($charset); if (!is_null(self::$_email)) { parent::setFrom(self::$_email, self::$_name); } }
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'); }
/** * 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); }
/** * 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(); }
/** * * @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(); }
/** * * @param array $options */ public function __construct($options = array()) { StaticConfigurator::setOptions($this, $options); if (!isset($options['charset'])) { $options['charset'] = 'utf-8'; } parent::__construct($options['charset']); }
/** * 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); }
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; }
/** * 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); }
/** * 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); }
/** * @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(); }
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"); }
/** * @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(); } }
/** * Creates a new Pimcore_Mail object (extends Zend_Mail) * * @param array $options */ public function __construct(array $options = array()) { parent::__construct($options["charset"] ? $options["charset"] : "UTF-8"); if ($options["document"]) { $this->setDocument($options["document"]); } if ($options['params']) { $this->setParams($options['params']); } if ($options['subject']) { $this->setSubject($options['subject']); } if (is_null(self::$html2textInstalled)) { self::determineHtml2TextIsInstalled(); } $this->init(); }
public function __construct($toAdress, $subject, $bodyText) { parent::__construct('utf-8'); $emailArray = Zend_Registry::get('MAIL_CONF'); $config = array('auth' => 'login', 'username' => $emailArray->username, 'password' => $emailArray->password, 'port' => $emailArray->port); if ($emailArray->useSSL) { $config['ssl'] = 'tls'; } $this->transporter = null; //check for mailers which don't use authentification if ($config['password'] == '' || $config['password'] == null) { $this->transporter = new Zend_Mail_Transport_Smtp($emailArray->host); } else { $this->transporter = new Zend_Mail_Transport_Smtp($emailArray->host, $config); } $this->setFrom($emailArray->fromAdress, 'WEB_GR'); $this->addTo($toAdress); $this->setSubject($subject); $introBody = "This is an auto generated message from WebGR.\r\n"; $this->setBodyText($introBody . $bodyText); }
function __construct($metas) { parent::__construct('utf-8'); $config = Zend_Registry::get('config'); if (is_string($metas)) { $title = $metas; $metas = $config->metas->toArray(); $metas['title'] = $title; $metas = new Wtk_Metas($metas); } $id = $config->get('system/short_title', 'STRASS'); $title = "[" . $id . "] " . $metas->title; $this->setSubject($title); $this->addTo(null); $this->_doc = $d = new Wtk_Document($metas); $d->level += 2; $d->addStyleComponents('mail'); $d->setStyle(Wtk_Document_Style::factory($config->system->style)); $d->embedStyle(); $d->addFlags('mail'); // :P $this->addHeader('X-Mailer', 'Strass'); $this->addHeader('X-MailGenerator', 'Wtk'); }
/** * Default charset utf-8 * * @param string $charset charset, defaults to utf-8 */ public function __construct($charset = 'utf-8') { parent::__construct($charset); $this->initSmtpTransport(); }
/** * Creates a new Pimcore_Mail object (extends Zend_Mail) * * @param array $options */ public function __construct($charset = null) { // using $charset as param to be compatible with Zend_Mail if (is_array($charset)) { $options = $charset; parent::__construct($options["charset"] ? $options["charset"] : "UTF-8"); if ($options["document"]) { $this->setDocument($options["document"]); } if ($options['params']) { $this->setParams($options['params']); } if ($options['subject']) { $this->setSubject($options['subject']); } } else { parent::__construct($charset); } $this->init(); }
public function __construct($fromEmail, $fromName, $charset = 'utf-8') { parent::__construct($charset); $this->setFrom($fromEmail, $fromName); $this->_view = self::getDefaultView(); }
/** * @param string $charset */ public function __construct($charset = 'utf-8') { parent::__construct($charset); }
public function __construct($charset = 'iso-8859-1') { parent::__construct($charset); $this->_view = self::getDefaultView(); }
/** * Конструктор. * * @param string $charset */ public function __construct($charset = 'windows-1251') { parent::__construct($charset); }
/** * Constructor * * Calls Zend_Mail::__construct(). * * @param string $pCharSet default 'UTF-8' * @return void */ public function __construct($charSet = 'UTF-8') { parent::__construct($charSet); }
/** * @param null $charset * @throws \Exception * @throws \Zend_Mail_Exception */ public function __construct($charset = null) { // using $charset as param to be compatible with \Zend_Mail if (is_array($charset) || self::$forcePimcoreMode) { $options = $charset; parent::__construct($options["charset"] ? $options["charset"] : "UTF-8"); if ($options["document"]) { $this->setDocument($options["document"]); } if ($options['params']) { $this->setParams($options['params']); } if ($options['subject']) { $this->setSubject($options['subject']); } if ($options['hostUrl']) { $this->setHostUrl($options['hostUrl']); } } else { if ($charset === null) { $charset = "UTF-8"; } parent::__construct($charset); } $this->init(); }
/** * Public constructor * * @param string $charset */ public function __construct($charset = 'iso-8859-1') { parent::__construct($charset); $this->view = new Vi_View(); $this->view->setEngine(new Vi_Mail_Engine()); }
public function __construct($charset = 'utf-8') { parent::__construct($charset); $this->setFrom('*****@*****.**', 'Quani'); }
/** * Construtor da classe. * * @param string $charset */ public function __construct($charset = null) { parent::__construct('UTF-8'); $this->setDefaultFrom(SYS_MAIL_NOREPLY, SYS_TITLE_DOMAIN); }
function __construct() { parent::__construct('ISO-2022-JP'); }