Send Multiple MMS
...
ContentType = MutlipartPart/Form-Data or Raw - application/json
This service can be used to send either multiple SMS or multiple MMS. When sending multipleSMS leave the image properties blank.
Message Size Limitations
Telstra it's up to 2MB, Optus up to 1.5MB and Vodafone only allows up to 500kB
messages over 600kb incur 1.6 times standard cost.
Supported Media Types
".png", ".jpg", ".jpeg", ".bmp", ".gif", ".avi",".flv",".wmv",".mp4",".mpg",".3gp",".mov", ".aif", ".cda", ".mid", ".midi", ".mp3",".mpa", ".ogg", ".wav" , ".wma", ".wpl"
Message Process Notes
Recipient Address and Number Validation.
...
To send to any country destination with MMS messages we must setup pricing to that country against your account - if pricing is not setup the system will return a -109 status and messages will not be processes. Contact us if you are getting this status.
MutlipartPart/Form-Data
- file element content
file_content value is byte array of base64 encoded image data
fie_content.Header.ContentType = MIME image content type eg "image/jpg"
file_content.Header.ContentDisposition = FileName = [your file name], Name = "MMSMedia" - string element content
Value is JSON string per the structure defined below; The name given to this element can either be "" or ''jsonstring"
Raw - application/json
Send same Json model as required for Multipart but as content Raw - application/json
Json Data Model for Both Content types
Name | Meaning | Notes |
---|---|---|
username | account username | |
password | account password | |
Subject | Subject Text content | max 64 characters - will be truncated if longer |
text | Body text content of the message | |
sender | From address for message | Can only be either; up to 11 characters alpha or a leased MMS long number |
recipients | List of recipient | list of recipients to send the message to - max 50 per request |
validity | time period before MMS that is not delivery will keep trying to delivery for in format dd:hh:mm | eg "00:03:00" being 3 hours. |
scheduled | Date time format dd/MM/yyyy HH:mm:ss zzz eg "01/10/2018 00:02:00 -10:00", | where zzz is time zone offset -10:00 10 hours in front of UTC |
ImageData | base64 encoded image data - Only populate when sending using Raw - application/json | base64 encoded image data |
Filename | Filename including ext. - Only populate when sending using Raw - application/json | name of file - with no directories |
FileType | MIME image content Type - Only populate when sending using Raw - application/json | eg "image/png" |
countryCode | 2 digit standard country code - eg Australia = "AU" Optional - if left bland recipient numbers must be in international format or they will fail our number validation. To send with local prefix code only you must specify the countryCode | |
recipients | List of recipients - can be in either local or international format - if using local format you must specify the CountryCode | list of recipients to send the message to - max 50 |
...