Would it be useful to have the recipient as a dynamic field, like the subject, instead of being $message->uid.
The reason being if I want to send out a message to a large number of users, I could then iterate through the recipients and just change the arguments each time.
If the message was a callback to a view passing in the recipients uid, the same message can be used for all recipients. Or am I thinking about it wrong amd it doesn't really matter if you have a different message for each recipient?
I could do the same thing by changing the $message->uid each time but that seems like too much of a hack.
I guess the alternative is just to make a different message for each recipient and then if I don't want the database cluttered up I can have the save on * options set to FALSE.
Or just let it save to the database and potentially use a lot of space.
I was thinking of using job scheduler or something similar (potentially even just cron) to send out mass notifications to users in batches.
Is that the kind of thing this module is aimed at, or something else?
I'm kind of thinking out loud a little sorry.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | message_notify-1434082.patch | 1.88 KB | dready2011 |
| #7 | message_notify-1434082.patch | 1.88 KB | dready2011 |
Comments
Comment #1
rooby commentedComment #2
amitaibuWhy not attach an entity-reference field to the message?
Comment #3
rooby commentedI guess the issue is that message_notify_send_mail() specifically uses $message->uid as the recipient, so without hacking message_notify that isn't possible.
But that idea helps me think properly in a message frame of mind.
I'm still trying to get myself thinking in a message way so I can use it properly and get the most out of it.
Comment #4
amitaibuThe Email plugin now allows overriding the email:
Comment #6
blackice2999 commentedHi Amitaibu,
thanks for your solution but i think it will be good that we add an option to the rule action to provide a seperate mail address.
patch will follow.
Thanks Dennis
Comment #7
dready2011 commentedAs described by blackice2999 (#6), here is the patch.
Comment #8
amitaibuTiny thing:
false => FALSE
Comment #9
dready2011 commentedHere the corrected patch
Comment #10
amitaibuFixed
$mail=FALSEto$mail = FALSEand committed, thanks.