1

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.

2

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

Magento\Newsletter\Model\Subscriber.php

    public function confirm($code) {

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

         $this->sendConfirmationSuccessEmail();

         return true;
       }

         return false;

    }

Clear cache and check your output.

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.