本文整理汇总了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();
}
示例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();
}
示例3:
function __construct($mailer = null)
{
if (method_exists(get_parent_class($this), "__construct")) {
parent::__construct();
}
$this->mailer = $mailer;
}
示例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;
}
}
示例5:
function __construct($mailer = null)
{
parent::__construct();
$this->mailer = $mailer;
}
示例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);
}
示例7: array
function __construct($recipient = null, $row = null, $rest = array())
{
parent::__construct();
$this->reset($recipient, $row, $rest);
}
示例8: __construct
public function __construct($config)
{
$this->client = SesClient::factory($config);
parent::__construct();
}