solved Newsletter Module Custom Filter Question?

Ceri
Ceri
@adolygwr
6 years ago
370 posts
How would I create a custom filter that only sends emails to members in the U.S. and Canada? I have some book offers that only apply this side of the Atlantic and I want to exclude members in Wales and the U.K. from the broadcast email. Not sure if this is possible or how to construct it. Any help appreciated.


--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 11/03/18 08:37:48PM
michael
@michael
6 years ago
7,746 posts
would be possible using a custom filter if you stored the locations of your users. Jamroom does not by default. Do you store the locations of your users anywhere that you know of in your database?
researchcooperative
@researchcooperative
6 years ago
694 posts
I have locations recorded in the standard Profile form, but only have data if members add the information.

Locations are also associated with IP addresses of members, I suppose, since they are shown when recipients respond to newsletters (but not elsewhere with the map view).

See for example https://yoursite/mailer/campaign_result/10 (if you are using the mailgun newsletter mailing system)

I can also see IP addresses in the dashboard

https://your site/core/dashboard/activity

I presume filters for location could be based automatically on IP addresses found for all users, or for locations submitted by users in a form.

In any case, all options for being able to define the receiving group for email messages from admin to a member base are valuable. JR already provides a good range of options, but other options based on user-identified location, user IP address, date range for date of joining, date range for last login, and so on would be potentially useful, for different purposes.

Maybe it's not easy to set up for all JR sites as standard admin tools.

Just dreaming on :-)


--
PJ Matthews, Kyoto
Migrated from Ning 2.0. Now at Jamroom 6 beta and using Jamroom Hosting for The Research Cooperative (researchcooperative.org)
brian
@brian
6 years ago
10,148 posts
researchcooperative:
I presume filters for location could be based automatically on IP addresses found for all users, or for locations submitted by users in a form.

IP Addresses change all the time - JR does not record them, so you could not use them as a filter. However, if you are storing custom user or profile fields for location - i.e. "user_country" and then have that field created as a form designer field in the "account settings" screen, when sending a newsletter you could do:

user_country = canada

or

user_country in canada,mexico,france

etc.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net