check if emails subscribed to categories in subscribe2
-
The setting:
I have subscribe2 installed. I am making an email form on my site which will allow users to email other users (yes yes, my site is completely concealed from the public). The php script I have as the template for the email page, takes email addresses from values from the url and prepopulates the recipient input in the email form with a multiple select option list. for example:will prepopulate the recipient box in the form with a select field with all of my users listed, and those three email addresses selected.
The Challenge:
I would like to make a link to that form to be able to prepopulate the form with users SUBSCRIBED TO A PARTICULAR CATEGORY.The Problem:
I cannot for the life of me figure out how to find (let alone refer to with PHP) the information in the sql database with the user subscription info.The Request:
Can someone write a few lines for me which cycles through the registered users, checks each one to see if it is subscribed to a certain topic, and if so, add it’s email address on the end of the following link:http://mydomain.com/wordpress/?page_id=35&emaillink=EMAIL_ADDRESSES_HERE (with a comma between each address)
Thanks.
- The topic ‘check if emails subscribed to categories in subscribe2’ is closed to new replies.