Needs review
Project:
Webform Simplenews Component
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 May 2012 at 04:09 UTC
Updated:
3 May 2013 at 20:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
meishme commentedSame here. Confirmation emails should not be sent to the user if the newsletter they're subscribing to is configured as "Single" (as opposed to "Double").
Comment #2
aheredia commentedThe problem is that Opt-in/out method varible isn't stored in a varible called 'simplenews_opt_inout_' . You should use the function 'simplenews_require_double_opt_in' to retrive this value.
I think this patch should solve the problem.
Comment #3
zanixThe patch above doesn't account for $value['newsletter_selection'] not being set or having a value.
This case happens when there is not a choice to pick the newsletter they sign up for.
This patch fixes this issue, #1364832: single opt_inout newsletter sends confirmations emails , #871558: compatibility with simplenews 2.x (for the 7.x version), and #1366926: emails are not saved in simplenews database as well.