File: sendmms.php

Recommend this page to a friend!
  Classes of Andy Dixon  >  Textlocal  >  sendmms.php  >  Download  
File: sendmms.php
Role: Example script
Content type: text/plain
Description: Send MMS Example
Class: Textlocal
Send SMS or MMS messages using Textlocal API
Author: By
Last change:
Date: 7 years ago
Size: 618 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';

$numbers = array('447403142134');
$message = 'This is an MMS message';

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

For more information send a message to info at phpclasses dot org.