smsCampaignSchedule()

SMS campaign delivery is scheduled. Time is set according GMT, but if a specific time zone needs to be set up, required number of hours have to be added or subtracted. Time is written in YYYY-MM-DD HH:II:SS +GMT format. Example of time format: ‘2020-05-18 11:59:21 +0100’, where ‘+0100’ is an added hour to the standard time.

smsCampaignSchedule(string $cid, string $schedule_time) : boolean
Input parameters
  • cid - SMS campaign ID
  • schedule_time - sending time (according to GMT)
Information obtained
  • true, if scheduling has succeeded. Otherwise, an error message is returned.

Examples

mgapi_smsCampaignSchedule.php
smsCampaignSchedule($cid, $schedule_time);
 
header("Content-Type: text/plain");
if ($api->errorCode) {
    echo "Unable to load smsCampaignSchedule()!\n";
    echo "\tCode=" . $api->errorCode . "\n";
    echo "\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "SMS Campaign Scheduled to be delivered $schedule_time!\n";
}

© 2010-2017 Mailigen. All rights reserved.