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

4
  • 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 Commented Sep 11, 2013 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. Commented Sep 11, 2013 at 8:19
  • Did you check the link? I think this guy had the same issue (and solution) Commented Sep 11, 2013 at 8:22
  • @SanderMangel No, stupid me did not check the link. This was the solution. Thanks a lot! Commented Sep 11, 2013 at 8:31

1 Answer 1

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 and acknowledge you have read our privacy policy.

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