• Resolved adrianppa

    (@adrianppa)


    Hi,
    I use a popup to subscribe visitors to my newsletter. They receive the confirmation email right after subscribing. After subscribing, if a visitor clicks the Subscribe to newsletter checkbox at checkout, the confirmation email is sent again, although the user is already subscribed. Which is useless and intruding. How do i remove the second confirmation?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Yes, this is currently how the signup confirmation process works. Sometimes a user may forget that they have already signed up for a newsletter, and it’s important to always inform a user whenever their email information is used to subscribe to any newsletter.

    There’s currently no option to remove the second confirmation. However, our team is always looking for ways to improve our service. If you like to submit this as a feature request (or see our roadmap) please go here https://feedback.mailpoet.com/

    Ref: https://kb.mailpoet.com/article/128-why-enable-signup-confirmation-double-opt-in

    Thanks,

    Also in one of our project we don’t want this functionality becouse is potencial doungerouse (Malicius user can re-register same work email for flood system).
    We resolve in this way:

    wp-content\plugins\mailpoet\lib\Subscribers\SubscriberActions.php

    Line: 55

    PHP
    
        if ($subscriber === false) {
          // create new subscriber or update if no confirmation is required
          $subscriber = Subscriber::createOrUpdate($subscriber_data);
          if ($subscriber->getErrors() !== false) {
            $subscriber = Source::setSource($subscriber, Source::FORM);
            $subscriber->save();
            return $subscriber;
          }
    
          $subscriber = Subscriber::findOne($subscriber->id);
        } else {
          // store subscriber data to be updated after confirmation
          //$subscriber->setUnconfirmedData($subscriber_data);
          //$subscriber->setExpr('updated_at', 'NOW()');
          $subscriber->setError(__('Indirizzo email già presente nel sistema.', 'mailpoet'));
          return $subscriber;
        }
    
    

    In setError said in your language (email already in DB).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate confirmation email’ is closed to new replies.