Why does the newsletter subscription send multiple confirmation emails?

Vic Carter asked on June 9, 2016 17:01

This is a follow up to my previous questions. I am trying to understand this process. The CustomSubscriptionForm webpart allows a user to subscribe to multiple newsletters via one form. Why then, does the back end process send multiple confirmations for a single action? Is this intended? If so, why? Also is it possible to access this process and make modifications. The code for the aforementioned webpart does not appear to do the actual mailing so I am confused at to how I may adjust the process to meet the needs of my client.

Thank you.

Recent Answers


Dawid Jachnik answered on June 10, 2016 08:36

Hello,

it's by desing in Kentico. For each Newsletter the confirmation is sent.

You can clone the NewsletterSubscriptionWebPart and modify it in the function Save(..) to meet your requirements.

To disable the confirmation email you need to setup SendConfirmation and RequireOptIn to false.

                mSubscriptionService.Subscribe(subscriber.SubscriberID, newsletter.NewsletterID, new SubscribeSettings()
                { 
                    SendConfirmationEmail = SendConfirmationEmail,
                    RequireOptIn = true,
                    RemoveAlsoUnsubscriptionFromAllNewsletters = true,
                });
0 votesVote for this answer Mark as a Correct answer

Vic Carter answered on June 10, 2016 22:09

That will disable the confirmation altogether? How does this differ from the webpart setting "Send Confirmation Email"?

Thank You for your time.

0 votesVote for this answer Mark as a Correct answer

Dawid Jachnik answered on June 13, 2016 08:41

Yes, it will disable the confirmation email for all newsletters, but you can put there your own logic.

Which version Kentico do you use ? I think this web part is obsolete.

0 votesVote for this answer Mark as a Correct answer

Vic Carter answered on June 13, 2016 15:15

v8.2.47

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.