当前位置: 首页>>代码示例>>PHP>>正文


PHP Mailer::__construct方法代码示例

本文整理汇总了PHP中Mailer::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mailer::__construct方法的具体用法?PHP Mailer::__construct怎么用?PHP Mailer::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mailer的用法示例。


在下文中一共展示了Mailer::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     if (self::$outbound_send !== null || self::$capture_emails !== null) {
         user_error('Mailcapture no longer uses private statics for config, please remove any settings of ' . 'private static $capture_emails and private static $outbound_send. Check the read for new yml based ' . 'config');
     }
     parent::__construct();
 }
开发者ID:nyeholt,项目名称:silverstripe-mailcapture,代码行数:7,代码来源:CaptureMailer.php

示例2: __construct

 public function __construct()
 {
     // Set the config email settings we wish to load.  This must be defined in the config/mailer.php file.
     $this->account = 'default';
     // Construct the parent.
     parent::__construct();
 }
开发者ID:Annejas,项目名称:PremadeSets,代码行数:7,代码来源:test.php

示例3:

 function __construct($mailer = null)
 {
     if (method_exists(get_parent_class($this), "__construct")) {
         parent::__construct();
     }
     $this->mailer = $mailer;
 }
开发者ID:helpfulrobot,项目名称:mediadevils-silverstripe-smtp,代码行数:7,代码来源:SmtpMailer.php

示例4: __construct

 /**
  * Set options for Crypt_GPG and add encrypting and signing keys.
  * 
  * @param string $encryptKey        Key identifier, usually an email address but can be fingerprint
  * @param string $signKey           Key identifier, usually an email address but can be fingerprint
  * @param string $signKeyPassPhrase Optional passphrase for key required for signing
  */
 public function __construct($encryptKey, $signKey = null, $signKeyPassPhrase = null)
 {
     parent::__construct();
     // Set options
     $this->setOptions();
     $this->gpg = new Crypt_GPG($this->options);
     // Add encryption key
     $this->gpg->addEncryptKey($encryptKey);
     // Add signing key
     if ($signKey) {
         $this->gpg->addSignKey($signKey, $signKeyPassPhrase);
         $this->sign = true;
     }
 }
开发者ID:edlinklater,项目名称:silverstripe-gpgmailer,代码行数:21,代码来源:GPGMailer.php

示例5:

 function __construct($mailer = null)
 {
     parent::__construct();
     $this->mailer = $mailer;
 }
开发者ID:tony13tv,项目名称:silverstripe-sendgrid-integration,代码行数:5,代码来源:CustomMailer.php

示例6: __construct

 public function __construct($isHTML = false, $mailSendTyp = 'mail', $singleTo = false, $dbProto = true)
 {
     $this->dbProto = $dbProto;
     parent::__construct(EMAIL_FROMADRESS, EMAIL_FROMUSER, HOST, $singleTo, $mailSendTyp, $isHTML);
     $this->setMessageId(md5(microtime()) . '@' . HOSTNAME);
 }
开发者ID:richyguitar,项目名称:mosd,代码行数:6,代码来源:email.php

示例7: array

 function __construct($recipient = null, $row = null, $rest = array())
 {
     parent::__construct();
     $this->reset($recipient, $row, $rest);
 }
开发者ID:kohler,项目名称:peteramati,代码行数:5,代码来源:cs61mailer.php

示例8: __construct

 public function __construct($config)
 {
     $this->client = SesClient::factory($config);
     parent::__construct();
 }
开发者ID:owindsor,项目名称:silverstripe-ses,代码行数:5,代码来源:SESMailer.php


注:本文中的Mailer::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。