One feature I've wanted for a while is the ability to send emails to all users in a view, or all authors of comments/nodes in a view.

I haven't really thought through the idea yet, but think that there is great potential for marketing.

For example, if views can filter to a list of people in a zipcode, or a state, or a political affiliation and mass_contact can mail them, it becomes a really powerful marketing tool.

Comments

NoahY’s picture

I think a better idea might be to allow on-the-fly creation of roles, and then adding an option to allow only certain roles to appear on the permissions page (the rest being automatically assigned authenticated user permissions only). That seems more reasonable than creating a custom method. This should be considered under the core user.module, I think.

greggles’s picture

Well, it seems unlikely to me that the core would support the creation of the on-the-fly user roles that you describe. I have a hard time coming up with an idea for another use of them that would justify their inclusion in core.

I understand my request is not simple and I'd be willing to help work on it, but I wanted to get your input on whether or not you'd like this idea.

NoahY’s picture

Well, I can imagine it would be useful for creating organic groups, say, by country.

You may be right about not getting it in the core, but I think we might agree it is always nicer to have everything work the same way under one heading, rather than having this module use groups and that module use roles and another module use categories. Anyway, this is not something I am prepared to take on. I can make you a developer of this module if you would like to add the functionality to this module. I would suggest changing the role-based category system to a boolean system which would allow for any part of the user profile, not just roles, eg: WHERE role = "editor" AND country = "spain". Then you could just query the appropriate table at the time of submitting the mail form.

NoahY’s picture

Sorry, I didn't realize you are an active drupal contributor. I've given you cvs access to this module, I only ask that you won't a) make this module into bloatware, or b) change core functionality of the module without discussion. Thanks :)

oadaeh’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
Assigned: Unassigned » oadaeh

I think this idea has merit. I have a few other things I want to get done, but when I have some spare time, I'll look into the feasibility of implementing this feature.

syngi’s picture

Just a thought, but might http://drupal.org/project/advuser provide some functionality to hook into?

Jeff Burnz’s picture

what about Views Mail - http://drupal.org/project/views_mail

Doesn't that already do what you are requesting?

greggles’s picture

It certainly does (note: it was released 2 months after I made this feature request).

I'm not complaining - ideally I could have gotten to this sooner but I didn't really need it. Oadaeh - your call if you want to keep working on it obviously. If it were up to me I would mark it duplicate or try to encourage them to merge projects.

oadaeh’s picture

Version: 5.x-2.x-dev » 7.x-1.x-dev

Thanks to ygerasimov, the 7.x-1.x version of Mass Contact now utilizes the Chaos tools suite (ctools) plugin system. I will reexamine this and realted issues with that plugin system in mind to determine whether to create a plugin for this request or not.

oadaeh’s picture

Component: Code » Categories
sillygwailo’s picture

Issue summary: View changes

It looks like Views Send is the way to go to send mail to users listed in a view these days.

Jacqs’s picture

Thanks for the tip sillygwailo, two years later still the way to go and looking forward to D8.

oadaeh’s picture

Assigned: oadaeh » Unassigned