Return to Snippet

Revision: 16889
at August 18, 2009 12:53 by nico65


Initial Code
public function confirm($code)
    {
        if($this->getCode()==$code) {
            $this->setStatus(self::STATUS_SUBSCRIBED)
                ->setIsStatusChanged(true)
                ->save();
                
                $this->sendConfirmationSuccessEmail();
            return true;
        }

        return false;
    }

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

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

Initial Title
magento Double-Opt-In sign in newsletter

Initial Tags
magento

Initial Language
PHP