PHP Classes

File: sendmms-group.php

Recommend this page to a friend!
  Classes of Andy Dixon   Textlocal   sendmms-group.php   Download  
File: sendmms-group.php
Role: Example script
Content type: text/plain
Description: Send MMS to a group
Class: Textlocal
Send SMS or MMS messages using Textlocal API
Author: By
Last change:
Date: 9 years ago
Size: 614 bytes


Class file image Download

$textlocal = new Textlocal('', 'apidemo123');

 * MMS file. Can either be a fully-formed local path
 * C:\path\to\your\file.jpg
 * or a valid URL
$file = dirname(__FILE__) . '/mms-file.jpg';

$groupId = 228839;
$message = 'This is an MMS group message';

try {
$result = $textlocal->sendMmsGroup($groupId, $file, $message);
} catch (
Exception $e) {
'Error: ' . $e->getMessage());