Closed (won't fix)
Project:
Simplenews
Version:
6.x-1.x-dev
Component:
Usability
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2008 at 15:55 UTC
Updated:
24 Apr 2009 at 08:38 UTC
I have created a newsletter and want to mass subscribe my existing 300+ users. Do I have to export all user emails by hand and then copy them into the mass subscription field?
Svend
Comments
Comment #1
STNyborg commentedProblem solved the hard way with a SQL-command updating the simplenews subscriptions by combining all ACTIVE users together with the new newsletter.
Perhaps it is not pretty, but it solved my problem. Note that you must replace NAME-OF-NEWSLETTER with the name of your own :D
However the solved problem I suggest that this should be done at the frontend of Drupal in the subscription section of the newsletter.
Svend
Comment #3
astridman commentedwait, wait, wait...hate to re-open but isn't there a more elegant solution to this problem than yanking out the table smacking it in the face?
Comment #4
sutharsan commentedThe closest thing is the Simplenews Roles module but unfortunately it is not stable, not (actively) maintained and not ported to D6.
Comment #5
astridman commentedSTNyborg, your SQL command did indeed work, thank you very much! One caveat for others attempting (I did mine through PHPMyAdmin) ...I had one user subscribed to the newsletter in question and I got an error back. I guess ALL users must NOT have a subscription to the newsletter prior to running the command.
Comment #6
astridman commentedwait, no, I just discovered that the command doubled EVERY USER in the DB. drat.
open source is AWESOME.
Comment #7
drein commentedany idea on how to do this query in drupal5?
sorry but if I write:
INSERT INTO simplenews_subscriptions (activated, mail, uid) SELECT 1, users.mail, users.uid FROM users WHERE users.status=1;
I receive this answer:
user warning: Unknown column 'activated' in 'field list' query: INSERT INTO simplenews_subscriptions (activated, mail, uid) SELECT 1, users.mail, users.uid FROM users WHERE users.status=1 in /var/www/vhosts/spazioausili.net/httpdocs/includes/database.mysql.inc on line 172.
Top of Form 1
Bottom of Form 1
in fact if I open the table, there isn't the "activated" column.
My knowledge of mysql is 0, but I should subscribe 150 users and I don't want to make it manually!!!!!
thanks if you can help.