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


PHP Mage_Core_Model_Email_Template::addBcc方法代码示例

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


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

示例1: testSend

 /**
  * @covers Mage_Core_Model_Email_Template::send
  * @covers Mage_Core_Model_Email_Template::addBcc
  * @covers Mage_Core_Model_Email_Template::setReturnPath
  * @covers Mage_Core_Model_Email_Template::setReplyTo
  */
 public function testSend()
 {
     $this->_mail->expects($this->exactly(2))->method('send');
     $this->_mail->expects($this->once())->method('addBcc')->with('bcc@example.com');
     $this->_mail->expects($this->once())->method('setReturnPath')->with('return@example.com');
     $this->_mail->expects($this->once())->method('setReplyTo')->with('replyto@example.com');
     $this->_model->addBcc('bcc@example.com')->setReturnPath('return@example.com')->setReplyTo('replyto@example.com');
     $this->assertNull($this->_model->getSendingException());
     $this->assertTrue($this->_model->send('test@example.com'));
     $this->assertNull($this->_model->getSendingException());
     // send once again to make sure bcc, return path and reply-to were not invoked second time
     $this->assertTrue($this->_model->send('test@example.com'));
 }
开发者ID:natxetee,项目名称:magento2,代码行数:19,代码来源:TemplateTest.php

示例2: addBcc

 /**
  * Add BCC emails to list to send.
  *
  * @return Ebizmarts_Mandrill_Model_Email_Template
  */
 public function addBcc($bcc)
 {
     $helper = Mage::helper('mandrill');
     if (FALSE === $helper->useTransactionalService()) {
         return parent::addBcc($bcc);
     }
     if (is_array($bcc)) {
         foreach ($bcc as $email) {
             $this->_bcc[] = $email;
         }
     } elseif ($bcc) {
         $this->_bcc[] = $bcc;
     }
     return $this;
 }
开发者ID:mikeymike,项目名称:magemonkey,代码行数:20,代码来源:Template.php

示例3: addBcc

 public function addBcc($bcc)
 {
     if (is_array($bcc)) {
         foreach ($bcc as $email) {
             $this->getSentEmailModel()->addBccReceipient($email);
         }
     } elseif ($bcc) {
         $this->getSentEmailModel()->addBccReceipient($bcc);
     }
     return parent::addBcc($bcc);
 }
开发者ID:danielwalterrodrigues,项目名称:asus,代码行数:11,代码来源:Template.php

示例4: _setCarbonCopy

 /**
  * @param Mage_Core_Model_Email_Template $mailTemplate
  * @param mixed $store
  *
  * @return $this
  */
 protected function _setCarbonCopy($mailTemplate, $store)
 {
     $copyTo = Mage::helper('aw_hdu3/config')->getCarbonCopyRecipientEmail($store);
     if (!empty($copyTo)) {
         $mailTemplate->addBcc($copyTo);
     }
     return $this;
 }
开发者ID:protechhelp,项目名称:gamamba,代码行数:14,代码来源:Notification.php

示例5: addBcc

 public function addBcc($bcc)
 {
     $this->bcc = $bcc;
     return parent::addBcc($bcc);
 }
开发者ID:reidblomquist,项目名称:mailgun_magento,代码行数:5,代码来源:Template.php


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