Can a message be sent using multiple "send methods"? For example, can a user receive both SMS and email for _ONE_ message?

Has anyone tried modifying the UI so that a user can choose multiple "send methods" in their notification screen?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jose Reyero’s picture

Status: Active » Fixed

Nope, this is not supported atm. We'll be doing it later possibly for 6.x, not for 5.x though.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

darrenmothersele’s picture

Version: 5.x-1.0 » 6.x-2.2
Status: Closed (fixed) » Active

I thought I'd open this issue again rather than create a new one to ask exactly the same thing.

I would like to send a message to multiple targets via this API, but looking at messaging_message_send() it doesn't seem to support this.

Is there an undocumented feature that supports this? Is there a plan to include this functionality? or, would you recommend I write a new sending method plugin that dispatches the message using a selection of other existing send method plugins?

Jose Reyero’s picture

> would you recommend I write a new sending method plugin that dispatches the message using a selection of other existing send method plugins?

That sounds like a great idea. It would be welcomed for the 4.x branch

About the current messaging API, it is as easy as sending the message twice.

christianchristensen’s picture

Version: 6.x-2.2 » 6.x-2.4
Component: Documentation » Code
Status: Active » Needs review
FileSize
3.03 KB

This is an initial attempt at adding multiple send methods to the messaging selection options. It seems the API gives enough abstraction that passing around the multiple selections inside of the user object leaves only cleaning up the use of the "send method" at the consuming endpoints. One place this immediately stands out is the notifications module (e.g. #329412: enable muliple Sending Methods), where additional considerations are necessary for handling the array rather than the singular sending method.

Ideally this needs to also have a patch for forward porting to 4.x (have not looked into what is necessary there yet).

christianchristensen’s picture

christianchristensen’s picture

Patchfile for drush make.

christianchristensen’s picture

Quick update to cleanup array_filter

christianchristensen’s picture

Updating this patch to ensure messaging array format on return.

drvdt’s picture

Issue summary: View changes

any path for D7?
Thanks