django-newsletter icon indicating copy to clipboard operation
django-newsletter copied to clipboard

Subscribe to all newsletters with single confirmation

Open sonus21 opened this issue 8 years ago • 3 comments

Some times we need to ask users only to subscribe, if they wish then we can subscribe user for all newsletters. When user is subscribing for all newsletters then if settings file have NEWSLETTER_CONFIRM_EMAIL=True then app should send only one email as he is subscribing for all newsletters.

sonus21 avatar Jan 12 '16 06:01 sonus21

I would like to subscribe new registred user to all newsletter if the user select a checkbox at the registration. Is this possible?

@sonus21 Could you figure out how to reach your goal? Would be nice if you could share your code :) or explain what you did

sowinski avatar Jan 19 '16 11:01 sowinski

Impossible is nothing. Just the code needs to be written and maintained. Perhaps it's easier to just create a custom view and form and, perhaps, abstract the subscription logic from the views.

dokterbob avatar Jan 19 '16 14:01 dokterbob

@sowinski I created a custom table (AllSubscription) whenever user subscribes I add a new entry to table and sent a email. Once user confirmed the email then I added entries to Notification Subscription table and deleted an entry from table AllSubscription that's all.

sonus21 avatar Jan 21 '16 04:01 sonus21