Closed (fixed)
Project:
Simplenews
Version:
6.x-1.0-rc6
Component:
Usability
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
30 May 2006 at 21:31 UTC
Updated:
4 Aug 2011 at 15:56 UTC
it would be excellent if i could force all users to be subscribed to a newsletter. i'm sure this could be accomplished through a sql query on my part, but i dont know mysql too well. if theres a query i can run periodically to subscribe all users to a newsletter, let me know
-adam
Comments
Comment #1
ngstigator commentedI had the same requirement. This will insert a record into sn_subscriptions for every user (except for user 0) that hasn't already subscribed.
Comment #2
ngstigator commentedIt seems that more interaction with tables is needed than my paltry SQL snippet.
An easier way to do this is to go to http://www.yourdrupalsite.com/admin/newsletter/users/add and add the email addresses listed in:
Comment #3
cutesimaus commentedThanks. I like this approach better than the patch i saw in another thread.
Comment #4
sutharsan commentedA one time subscription of all users will not make it as a feature into Simplenews. Subscription of new users is now available as a HEAD patch: http://drupal.org/node/76648. It will not get rolled back to 4.7.x.
Comment #5
binarylime commentedI've written a MySQL / PHP snipet that will add anyone who isn't already to the simplenews newsletter. I've created this as a page in Drupal and it will run each time the page is visited.
You should be able to just copy and paste and just change the '69' to your newsletter id.
Comment #7
rfranquet commentedThanks Andrew, this is a new release.
Comment #8
binarylime commentedI'm now having issues with this as I have around 8000 users.
I'm getting the error
:
Fatal error: Out of memory (allocated XXXX) (tried to allocate X bytes) in drupalsite.com/html/includes/bootstrap.inc on line 584.
Any ideas to refine this code?