Magento Store - Don't Send Success Newsletter Email

When users subscribe to a newsletter in a Magento store, they receive a confirmation email. Is it possible to prevent this email from being sent?

There is no rear end option for this.

+2


a source to share


6 answers


I have created a module that solves this problem and can be enabled and disabled from the backend.

Module configuration screenshot



Load module

+6


a source


The file you want to override is Mage_Newsletter_Model_Subscriber

. Create a class that overrides this model and then replace the two methods as follows:

<?php

class Somepackage_Somemodule_Models_Subscriber extends Mage_Newsletter_Model_Subscriber {

    public function sendConfirmationSuccessEmail() {
        return $this;
    }

    public function sendUnsubscriptionEmail() {
        return $this;
    }    
}

      

This will disable the subscription (and unsubscribe) emails for customers.



Hope it helps!

Thanks Joe

+8


a source


To disable any email notification in Magento, you can use the free Magento 1 extension .

In addition, there is a similar extension for Magento 2.

+2


a source


Do you mean success or confirmation (must be confirmed to receive the newsletter)?

The latter can be disabled in Configuration-> Newsletter

-1


a source


And much easier, albeit a kind of hack, is to look for the sendConfirmationSuccessEmail method that sends emails. He is in:

Application / Code / Core / Mage / Newsletter / Model / Subscriber.php

The only thing you need to do is return true on the first line of the method.

-3


a source


in 1.6.2, go to app / code / core / magician / newsletter / model / Subscriber.php

comment out both instances:

`$this->sendConfirmationSuccessEmail();`

      

(lines 358 and 457)

-3


a source







All Articles