jethro-pmm icon indicating copy to clipboard operation
jethro-pmm copied to clipboard

[FR] Allow name merge in SMS messages

Open tbar0970 opened this issue 9 years ago • 4 comments

When composing an SMS it would be nice to be able to write "Dear %firstname%" and have it populate each recipient's name.

tbar0970 avatar Dec 10 '15 04:12 tbar0970

And if it is a roster notification %roles%

tim-pearce avatar Jan 27 '24 06:01 tim-pearce

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

tim-pearce avatar Jan 27 '24 07:01 tim-pearce

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.

tim-pearce avatar Feb 28 '24 00:02 tim-pearce

Found this today and want to agree that this is a good idea. Looks 9 years old though.

simon-KAC avatar Jul 01 '24 04:07 simon-KAC