Call: 01244 573240   Support: 0845 0093182
Follow Us:
Sign Up Free
Full Access - Free Credits
Takes 60 Seconds

Our price promise

We will match or beat any similar price offer.

Find out more

Our Lastest Reviews

View all

View our Tutorials

See our latest Messenger video tutorials for help and advice on how to get started

Watch Now

Success stories

Testimonials from clients in your sector

View Testimonials

MMS API Gateway: Receive Images & Audio

Receive MMS messages into your own systems and software.

You can configure any of your Textlocal inboxes to send a notification to a URL whenever you receive an MMS. To enable message notifications, simply enter your URL into the inbox settings within Messenger.

Overview

Once you've configured your Textlocal inbox settings to forward to your URL, the following variables will be sent as POST variables:

from The sender's mobile phone number in international format. For example, 077xx xxxxxx numbers will be formatted as UK.
subject The subject line of the MMS message. If you have a keyword on a shortcode, this field will be blank.
to The inbound number the message was sent to.
body The full message content.
files A comma-delimited list of URLs to the MMS media sent in the message. This will normally include a text file containing the message content.

Code Examples

As all we are doing is sending you variables, it's quite difficult to show code examples, however the following might help - including, in some languages, examples of writing the variables to a database and/or file:

					    		<?php
					    		$from = $_REQUEST['from'];
					    		$to = $_REQUEST['to'];
					    		$body = $_REQUEST['body'];
					    		$subject = $_REQUEST['subject'];
					    		$files = explode(',', $_REQUEST['files']);
					    		if(sizeof($files) > 0)
					    		{
					    			// Loop through files
					    			foreach($files as $file)
					    			{
					    				// Get file name
					    				$filename = basename($file);
					    		
					    				// Download file
					    				$ch = curl_init($file);
					    				$fp = fopen('images/'.$filename, 'wb');
					    				curl_setopt($ch, CURLOPT_FILE, $fp);
					    				curl_setopt($ch, CURLOPT_HEADER, 0);
					    				curl_exec($ch);
					    				curl_close($ch);
					    				fclose($fp);
					    			}
					    		}
					    		?>
					    	

Create Your Free Account - 60 Second Signup - Free Expert Support

"Fantastic tool, used it to get in touch with a large number of our customers in a quick and efficient manner. Tool was simple to set up and use, good reporting functionality and wll received by customers." - Barry Cohen

Read more reviews >

Our website uses cookies, mmm.... These are small files that make our website work better. If you're unhappy with this you will need to change your cookie settings.
Click here to view our privacy policy Or Click the x button to close.