smsCampaignSendNow()

Submit request of delivering SMS campaign that previously was saved as a draft. SMS campaign is sent immediately. SMS campaign ID number is passed as a parameter.

smsCampaignSendNow(string $cid) : boolean
Input parameters
  • cid - SMS campaign ID
Information obtained
  • true, if request of SMS campaign delivery has succeeded. Otherwise, an error message is returned.

Examples

mgapi_smsCampaignSendNow.php
smsCampaignSendNow($cid);
 
header("Content-Type: text/plain");
if ($api->errorCode) {
    echo "Unable to load smsCampaignSendNow()!\n";
    echo "\tCode=" . $api->errorCode . "\n";
    echo "\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "SMS Campaign Sent!\n";
}

© 2010-2017 Mailigen. All rights reserved.