I'm trying to find a way to be able to send out an email that is different for each user that's subscribed to an email list.
This is my idea of the layout right now.
Node
- The node serves as the form the user can make choices that can be used as a filter / args either for Views or direct database data retrieve via db_result(db_query())
- CCK fields will be the options the user can select.
- The changing of the options will be on the edit page.
Some of the options the user would be able to pick are: Frequency of emails, search terms, taxonomy terms, distance based off location.
Simplenews
Simplenews would be a good base for managing an email list. Other options have crossed my mind. Adding users to a role, or the Flag module. User clicks the link and are flagged to receive an email.
Views
Views can be used to retrieve the data. The data from the CCK fields from the node can be used as the arguments to filter the data for each user.
I don't have to use Views as well, can also just use a db_query() and gather the data that way, which works and is less pain in the short / long run.
Summery: To send an email to the user that the output of the email is filtered by options the user selects from the node/edit page.
Any answer will be helpful, from a small code snippet from a full step-by-step walk through.
Comments
Rules
Have you looked at the rules module as you can set up complex workflow with the option of injecting custom php if required. Node one have a good video series on it http://nodeone.se/blogg/learn-rules-screencast-series-summed-up
Peter J Lord
http://peterjlord.co.uk
I'll take a look at it and
I'll take a look at it and piece something together and I'll report back with what I come up with. I do like the custom PHP part of rules...
Thanks plord
I love it used with the flag
I love it used with the flag module as it's very simple to flag something and then do various things.
And with the php stuff I usually right a function which gets called then all code changes are in version control.
Peter J Lord
http://peterjlord.co.uk