__construct() 공개 메소드

Public constructor
public __construct ( string $charset = null )
$charset string
예제 #1
0
 public function __construct($mustNotBeSet = null)
 {
     if ($mustNotBeSet) {
         throw new Kwf_Exception("Kwf_Mail got replaced with Kwf_Mail_Template");
     }
     parent::__construct('utf-8');
 }
예제 #2
0
 /**
  * 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
0
 public function __construct($charset = 'UTF-8')
 {
     parent::__construct($charset);
     if (!is_null(self::$_email)) {
         parent::setFrom(self::$_email, self::$_name);
     }
 }
예제 #4
0
파일: Mail.php 프로젝트: highfidelity/love
 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
0
 /**
  * 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
0
파일: Mail.php 프로젝트: namesco/ztal
 /**
  * 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
0
 /**
  *
  * @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
0
파일: Mail.php 프로젝트: finalclass/netcore
 /**
  *
  * @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
0
파일: Html.php 프로젝트: laiello/wanderson
 /**
  * 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
0
 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
0
파일: Mail.php 프로젝트: jo-m/ecamp3
 /**
  * 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
0
파일: Mail.php 프로젝트: varvanin/currycms
 /**
  * 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
0
 /**
  * @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
0
 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
0
 /**
  * @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();
     }
 }
예제 #16
0
파일: Mail.php 프로젝트: nblackman/pimcore
 /**
  * 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();
 }
예제 #17
0
파일: Mail.php 프로젝트: blackskaarj/webgr
 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);
 }
예제 #18
0
파일: Mail.php 프로젝트: bersace/strass
 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');
 }
예제 #19
0
파일: Mail.php 프로젝트: nnnnathann/piwik
 /**
  * Default charset utf-8
  *
  * @param string  $charset  charset, defaults to utf-8
  */
 public function __construct($charset = 'utf-8')
 {
     parent::__construct($charset);
     $this->initSmtpTransport();
 }
예제 #20
0
 /**
  * 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();
 }
예제 #21
0
파일: Mailer.php 프로젝트: luismayta/zrt
 public function __construct($fromEmail, $fromName, $charset = 'utf-8')
 {
     parent::__construct($charset);
     $this->setFrom($fromEmail, $fromName);
     $this->_view = self::getDefaultView();
 }
예제 #22
0
파일: Mail.php 프로젝트: Antevenio/PowerMta
 /**
  * @param string $charset
  */
 public function __construct($charset = 'utf-8')
 {
     parent::__construct($charset);
 }
예제 #23
0
 public function __construct($charset = 'iso-8859-1')
 {
     parent::__construct($charset);
     $this->_view = self::getDefaultView();
 }
예제 #24
0
 /**
  * Конструктор.
  *
  * @param string $charset
  */
 public function __construct($charset = 'windows-1251')
 {
     parent::__construct($charset);
 }
예제 #25
0
 /**
  * Constructor
  *
  * Calls Zend_Mail::__construct().
  *
  * @param string $pCharSet default 'UTF-8'
  * @return void
  */
 public function __construct($charSet = 'UTF-8')
 {
     parent::__construct($charSet);
 }
예제 #26
0
 /**
  * @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();
 }
예제 #27
0
 /**
  * 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());
 }
예제 #28
0
파일: Mail.php 프로젝트: Remchi/ZF-Quani
 public function __construct($charset = 'utf-8')
 {
     parent::__construct($charset);
     $this->setFrom('*****@*****.**', 'Quani');
 }
예제 #29
0
파일: Mail.php 프로젝트: ao-lab/ao-zend
 /**
  * Construtor da classe.
  *
  * @param string $charset
  */
 public function __construct($charset = null)
 {
     parent::__construct('UTF-8');
     $this->setDefaultFrom(SYS_MAIL_NOREPLY, SYS_TITLE_DOMAIN);
 }
예제 #30
0
 function __construct()
 {
     parent::__construct('ISO-2022-JP');
 }