Just a follow up for others who may encounter some of the issues I worked through with the help of Chad to get everything working properly.
Although I finally had the module settings configured correctly, my test user registering on the dynamic registration page and opting in to the newsletter was not being added to the distribution group for that newsletter. I could add a user normally from the subscription feature of the opt-in module but this was the only way to make it work. If I tried to add my test user from the subscription page, it would say the user is already in our database, even though under the opt-in list/users they were still not associated with the newsletter.
To continue testing, I would delete the newly registered user from the dnn users module and from the opt-in lists/users module and change some settings and reregister the user again but with the same results no matter what I did.
Chad figured out that an InActive flag in a stored procedure was to blame and modified the stored procedure to fix the problem. In his own words:
"I think I found the issue surrounding this (if you were testing with the same email address). It appears to be adding it for new address's but not ones entered before. I checked the stored procedures and the very last one needed to check for the InActive flag... If it wasn't checking the InActive flag before it was updating the previous opt in email / category table and since that was an inactive email address it wasn't showing up."
So...if you're setting up your module's intial configurations (both Dynamic Reg & Opt-in Email) and you don't get it exactly right the first time( I assume this is what I did) and you test it with a test email account and try to opt-in, it is possible that the account will be marked inactive when you delete the user and remain that way even when you add the user back via registration. It's a good way to drive yourself nuts trying to figure out what's going on:-)
I guess this would have been a bigger problem down the road if a real user had been deleted for some reason and then later reregistered and tried to opt-in to the newsletter?
Chad also made note that he had fixed the SQL scripts that users download from
www.datasprings.com
Thanks once again Chad for the great support and timely fixes.
Paul |