And you can do better than that! Use the following two static methods for every “Bag” type object to be personal and, not to mention, way more effective. Otherwise, you would be sending the same message to every recipient. If you are thinking about a bulk SMS campaign, you should also be thinking about content personalization. $smsFeature->scheduleSmsToGroup($scheduleSmsToGroupBag) SMS personalization in PHP library: parameters and message templates $scheduleSmsToGroupBag = ScheduleSmsToGroupBag::withMessage( $smsFeature->scheduleSmss($scheduleSmssBag) $scheduleSmssBag = ScheduleSmssBag::withMessage( $smsFeature->scheduleSms($scheduleSmsBag) It arrives precisely when it means to.') $scheduleSmsBag = ScheduleSmsBag::withMessage( The code below presents it in three ways as mentioned earlier: single message, bulk SMS and messages sent to a contact group: $sendingDate = new DateTime('') As expected, the API will unfailingly deliver messages at a designated time for you, so you don’t have to implement such a program yourself. The PHP to send SMS notifications comes with multiple schedule functions. Thus I recommend A/B tests to find your sweet spot! But to do it right, you must determine the proper time and frequency first. The message scheduling feature will be essential for larger repeatable campaigns. $service->smsFeature()->sendSmsToGroup($smsToGroupBag) Timely messaging – SMS scheduling $smsToGroupBag = SendSmsToGroupBag::withMessage('group_name', 'Good morning, contact group!') $service->smsFeature()->sendSmss($smssBag) $smssBag = SendSmssBag::withMessage($receivers, 'Hello, receivers!') Easy-peasy, use the sendSmss function and SendSmssBag class.Īlternatively, create groups in the Contacts tab and send a bulk SMS campaign like this: $receivers = There’s a huge chance that your SMS communication will depend on delivering the same messages to many different recipients. $status – delivery status ( complete list and explanation).$dateSent – time of messaging, UNIX timestamp format. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |