I would like a "Send to all" button to allow administrators to send a message to everyone at once.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

budda’s picture

Title: Send to all » Send to all, send to multiple users, send to groups, send to all in a role

I too would like this, and the ability to send to just multiple users, and send to everybody in a certain role too.

I would be interested in sponsoring this development if it would speed it up?

jeffleeismyhero’s picture

I have been working on the send to all functionality and although that part works I am not ready to contribute it. I would like to get the code cleaned up and add the ability to send to groups, roles, and multiple users (comma separated).

It should not be too difficult to send to roles but what are the groups you are talking about? I am quite new to Drupal and haven't explored all of the modules etc.

jeffleeismyhero’s picture

Assigned: Unassigned » jeffleeismyhero

I am assigning this to myself.

budda’s picture

Groups as in organic groups - so you can PM them all at once.

Popboard’s picture

It's pretty simple. I've been able to change the 'Contacts' drop down to work directly with the buddylist module. I'm guessing the code would be in that function.

kevinwalsh’s picture

this interests me too so i'm subscribing

mliga’s picture

I needed this quickly so I implemented it in a rough but very funcional way; now in my modified version you can specify multiple users ; separated (you can pick them adding them to the To field; I've also added a second combo with special commands (Clear to clear quickly the To field and All to send the message to All the user with PM enabled.
I also change the Aggressive notification behaviour, in a way it sends immediatly a mail notifying users about new PM messages.
What I came with is a PM for small sites, useful when you have a team or group site with < 50 users (less they are better it works).

Now, which step should I take? Should I post my patch in this module, complicating module mission, or should I contribute it as a completely different module?

Patrick Nelson’s picture

mliga,

Personally, I don't know whether a patch or a new module would be best, but I do know that I would love to get my hands on it!

Is there any chance you could post your module here?

nathanraft’s picture

Great Ideas!!

Can you post your module here?

I am very interested in the ability for people to PM multiple users.

robotjox’s picture

Hi, did anyone ever work this out?

thanks!

nathanraft’s picture

This would be really great to have.

If a site is going to have private messages then people should be getting messages there and not a bunch of emails.

csc4’s picture

Subscribing - anyone know when a patch or release of this will be available?

rbburton’s picture

Subscribing -- we had a request for this just ten minutes ago, so I was wondering about the status as well.

Thanks.

mliga’s picture

FileSize
32.46 KB

Sorry, been away for a while.

Here's my code, nothig special to say about it but it's working on a production site (restricted registration, less than 50 users).

I hope it can help and someone can take it and integrate with the PM module.

mliga’s picture

FileSize
1.05 KB

... and here is my modified privatemsg.js

sofcare’s picture

Does anyone know of a release date for this feature (for the current version)?

gurukripa’s picture

Can we have this for Drupal 5.1 too :)

ADLongwell’s picture

FileSize
3.03 KB

Just found this issue.. I customized privatemsg.module to support multiple recipients in the To: field. I've attached the patch here.

cush’s picture

I'd love to see this in main Drupal, too! Mainly the possiblity to send out mails to all users of a given role would be very useful. Sometimes it is very hard to find all members without having a simple only-click option to reach them.

This is another point where Drupal could improve member management in the default installation. I'm really looking forward to the new versions.

pwc’s picture

Uhm, that ADLongwell's patch doesn't work with version 5 - patch won't succeed (Hunk #1 FAILED...). I'm newbie with Drupal, is there any way I could have this feature?

hugafish’s picture

Hi everyone, I'm not a programmer, but it seems to me to make more since to tie this into an existing module as an upgrade. The module I refer to is the Profile module, which in my opinion should really be part of the core suite actually. This would allow each user to have the option of having his Private Messaging sent to his email or not. Or another good choice for the Private Messaging system would be to have it integrated into the Forum module. Forums typically have a Private Messaging feature most of the time. I apologize in advance if this is already included into these modules and I am just not aware of it. Patches for customization without going through a core approval process scares the crud out of me, sounds way to alpha for me. I would hate to see my live site compromised with alpha code. Also I could have swore I seen a module that already exists for this feature, maybe I'm wrong or it was somewhere else. I'll go take a closer look into the existing module base to see.

kriskd’s picture

I also tried to apply ADLongwell's patch on a test site and all three hunks failed. I hope the option of sending to multiple recipients can be implemented soon!

php-workx’s picture

you should try the attached patch. this one works with latest official release version of this module ...

Fayna’s picture

Status: Needs review » Active

Do all of these patches carry the same functionality (i.e., send to multiple users, all users, all users in a certain role, all users in a group, etc.)?

Why not combine efforts?

Fayna’s picture

Status: Active » Needs review

Maybe this will make it easier for the new maintainer to find this issue with patches in it.

litwol’s picture

Status: Active » Needs review

Please use this partch if it works for you. *notice* i have not tested it.

Right now i am working on redesigning the architecture being privatemsg module which will allow this functionality to be integrated in a much easier and more efficient way.

in the mean while use what ever works for you (refering to the patch above IF it works).

mirian’s picture

Hello all,

I tested the suggested patches and its seemed to work well!

One question:

I see that the email is sent to multiple as separate emails (i.e. - in the sent emails box- we can see the email as separate emails- each one to another user.) this is due to the implementation of " _privatemsg_send" function and the structure of the table which hold each recipient in another row in the table.

I want to present the multiple-recipients-email as one email.
any way to do it?

thanks,
Miriam

litwol’s picture

See this module: http://drupal.org/project/privatemsgmm

i recently added means to send messages to ALL users. however i am testing it in my work environment and will soon be contributing the code back.

mirian’s picture

Thanks, I found this module.
but, also in this module when you send email to more than one person, it's saved in separate rows in table,
and as a result, every copy to one of the recipients, is presented as seperate email in the "sent mail" folder.
I think that if you want the email to work like a real mail box we need to fix it and it means a change in the "privatemsg" table. we can add a column which will hold the the same identifier to multiple copies for multiple users if the same email.

What do you think?

Miriam

kriskd’s picture

Just want to check if by chance this feature has been included in the release candidate for the D6 version of the module. This is pretty much the last module I need upgraded to upgrade my site to D6, but I also need the ability to send to multiple users. Is that available at this time?

NaheemSays’s picture

Ther eis no send to all functionality, but you can send messages to multiple recipients.

spydmobile’s picture

this module claims to send to all in a role and points to this thread. So, how do we send to a role?

Fayna’s picture

It's not available yet as far as I know... that's why it's listed under "Future Features."

igorik’s picture

Version: 4.7.x-1.x-dev »
Status: Needs review » Active

This could be really nice feature, e.g. admin can sent a private message to all site users (he coudl choose name of sender), or all of some user role users.
I loved this feature in drupal 5 private message

do you think that it could add into private message roadmap? Thanks
Igor
http://www.somvprahe.sk

Parkes Design’s picture

Definitely subscribing... this is a much need feature.

BenK’s picture

Subscribing too.

Bilmar’s picture

This would be a great additional feature!

Currently I am having to manually pull all email addressed for Role A from database.
Does anyone have a better solution to this at this time?

Thank you!

Berdir’s picture

Title: Send to all, send to multiple users, send to groups, send to all in a role » Send to all, send to groups, send to all in a role
Version: » 6.x-1.x-dev
Assigned: jeffleeismyhero » Unassigned

I don't know if I have time to work on this before 1.0. If someone needs this and is interested in sponsoring the development to speed things up, feel free to contact me directly.

For now, just updating the title. I will close a few other threads as duplicates of this one.

Berdir’s picture

Status: Active » Closed (duplicate)

Actually, it's probably easier to set this to duplicate of #555016: Planning for sending messages to roles. since that contains more discussion about how this could be done.

belllge’s picture

you can watch all latest movies at"http://www.vfunia.com/?aff=432"

belllge’s picture