jethro-pmm
jethro-pmm copied to clipboard
[FR] Allow name merge in SMS messages
When composing an SMS it would be nice to be able to write "Dear %firstname%" and have it populate each recipient's name.
And if it is a roster notification %roles%
in include/sms_sender.class.php Function SendMessage Split this function so it can decide to send all at once or separately for each person If the message contains %firstname%, %secondname% or %roles% then cycle through each person and call the second function for each person, otherwise just pass through to the second function. How to get the roles? That would be done in views/view_7_rosters__1_display_roster_assignments.class.php
I have written code for the first part of this. Totally not tested yet. Haven't had a chance to run it even once yet.
Found this today and want to agree that this is a good idea. Looks 9 years old though.