3

If I subscribe to the newsletter as guest I get a email to confirm my subscribtion but after I confirm I don't get a confirmation mail that I am subscribed now.

How can I change this to get the confirmation mail?

enter image description here

  • If it's just one mail that's not sending check for HTML syntax issues, optionally use the default email template. EDIT: check this post: magentocommerce.com/boards/viewthread/237771 – Sander Mangel Sep 11 '13 at 8:08
  • @SanderMangel If I subscribe as registered user I get this email so I think the template is fine. It is just not send if I subscribe as guest. – PiTheNumber Sep 11 '13 at 8:19
  • Did you check the link? I think this guy had the same issue (and solution) – Sander Mangel Sep 11 '13 at 8:22
  • @SanderMangel No, stupid me did not check the link. This was the solution. Thanks a lot! – PiTheNumber Sep 11 '13 at 8:31
7

As Sander Mangel pointed out the solution is in app/code/core/Mage/Newsletter/Model/Subscriber.php. Copy this file to app/code/local/Mage/Newsletter/Model/Subscriber.php

Find function confirm($code) (Line 470 in CE-1.7.0.2) and add $this->sendConfirmationSuccessEmail();

Now the function should look like this:

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

    return false;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.