I enabled need to confirm options "Yes".

Stores > Configuration > Customers > Newsletter > Subscription Options > Need to Confirm

So, user confirm subscription link mail not send to the user after confirm subscription.

How to do that after confirmation newsletter subscribe successfully mail will be sent to that user.

1 Answer 1


You just need to apply this below changes on this path :-


    public function confirm($code) {

       if ($this->getCode() == $code) {
          $this->setStatus(self::STATUS_SUBSCRIBED) ->setStatusChanged(true) ->save();


         return true;

         return false;


Clear cache and check your output.


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.