magento Double-Opt-In sign in newsletter


/ Published in: PHP
Save to your folder(s)

/app/code/core/Mage/Newsletter/Model/Subscriber.php
$this->sendConfirmationSuccessEmail();


Copy this code and paste it in your HTML
  1. public function confirm($code)
  2. {
  3. if($this->getCode()==$code) {
  4. $this->setStatus(self::STATUS_SUBSCRIBED)
  5. ->setIsStatusChanged(true)
  6. ->save();
  7.  
  8. $this->sendConfirmationSuccessEmail();
  9. return true;
  10. }
  11.  
  12. return false;
  13. }

URL: http://www.magentocommerce.com/boards/viewthread/48670/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.