Closed (duplicate)
Project:
Simplenews
Version:
6.x-1.x-dev
Component:
Usability
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2009 at 13:22 UTC
Updated:
19 Aug 2010 at 15:35 UTC
hello all,
reading through the issues posted here confused me. i am looking for a possibility to collect more user data while subscribing the first time for newsletters; storing these data in the database and use them for personlized newsletters.
is there a clear description how to patch the recent version ?
are any extending modules under development or even available ?
thanks for support in advance
steffen
Comments
Comment #1
eax commentedHi there,
I just came across a possibility to use any user-relevant data inside a personlized newsletter. My situation was as follows:
I needed a newsletter that changed its contents based on the interests of the user. The admin would have to create just one newsletter and assign the relevant topics to the different content snippets. After doing lots of research and puzzling myself, I finally found a solution. I made a tiny modification to simplenews_mail_mail():
Now I'm able to use $simplenews_account in my simplenews-newsletter-body.tpl.php. By making a manual database query I fetch the user and profile data from the email carried in $simplenews_account->mail. The code looks like this:
From this point on I'm able to use the complete user profile in $recipient.
But... there's an incredible important problem with this solution: Because of the template caching only one single email could be sent during a cron run. I set mine to run every single minute, and it's okay for my needs. So, if you have loads of subscribers, prepare to wait serveral ages for transport the newsletter to all recipients ;)
Comment #2
drizzi commentedhi eax,
thanks for the reply - but i am not sure if this would a solution for us. i would prefer a solution like integration some of the functionlities of phplist in simplenews.
just a small form asking for surname and lastname, emailadress and maybe some more fields, storing them in the database and make them available for the newsletter templates.
what i am not looking for - enforcing the receipants to do a full registration in drupal.
thanks again
steffen
Comment #3
eax commentedWhat I do is disguising the full registration as a subscription to the newsletter. I'm not sure if it'll be a good idea just to store some values in the database. Remember that you need to give the subsciptors a possibility to unsubscribe or alter personal informations, such as name or email-adress.
I think the drupal user role system is flexible enough to restrict user accounts to this functionality only.
Just a quick thought, maybe someone else likes to comment on that as well.
Comment #4
drizzi commentedi even do not like a full registration to drupal - but i follow the lights of cordiality. a newsletter starting with
"dear mr. miller" is more polite than "to all receivers"... :-)
greetings
steffen
Comment #5
drizzi commentedhello all,
still nothing new about personalized newsletters?
steffen
Comment #6
simon georges commented#127178: Make Subscribers fieldable is the current issue for such matter.