MMS Gateway - ClickSend

The ClickSend MMS Gateway currently delivers MMS messages globally. You can use the following methods for attaching media files to your outgoing messages:

  • Public URL: simply enter the publicly accessible URL for each media file that you wish to send. You would typically upload the file (jpeg or gif) to a server and determine the URL to that file and enter this into the URL field when sending an MMS message. N.B. ClickSend require certain media file formats to be first uploaded to ClickSend to be converted and return a URL you can use - fmMMS handles the uploading of images these to the uploads endpoint automatically when using the Gateway Direct method.
  • Get Media Record URL: using the supplied getMediaURL.php file (versions for both the FileMaker Data API and the FileMaker PHP API are included) you can generate a dynamic URL on the fly that ClickSend can use to download a media file from the container field in the Media table record. This requires the fmMMS file to be hosted on FileMaker Server or FileMaker Cloud for AWS. Like the Public URL method this can only be used for certain media file formats (jpeg or gif) that aren't required to be first passed to the ClickSend uploads endpoint.
  • Gateway Direct: fmMMS will upload the file stored in the FileMaker container field directly to ClickSend who will store the media for 10 minutes. This effectively means that the URL that is returned for uploaded media should not be re-used in future outgoing messages as all files will expire 10 minutes after being uploaded.

You can get further information on supported media files and limitations here:

https://developers.clicksend.com/docs/rest/v3/#send-mms

https://developers.clicksend.com/docs/rest/v3/#ClickSend-v3-API-Upload

Incoming Messages/Replies

You can get incoming messages/replies to your ClickSend number into the fmMMS file in 2 ways:

  • Manually Download Incoming Messages
  • Use Webhooks to have ClickSend push these automatically to fmMMS

Using Webhooks is the preferred method as it saves you from having to poll/check for any new messages - with Webhooks new messages are forward to fmMMS automatically by ClickSend as they are received.

ClickSend Webhooks Setup

To receive incoming MMS messages to your ClickSend number, including replies to previously sent messages, you will need to use the supplied WebhooksIncomingMessages.php webhook file to act as the webhook receiver. See our Webhooks guide for what you need to do host the WebhooksIncomingMessages.php file on your chosen web server. Once you have the publicly accessible URL for this file you can enter this into your ClickSend account settings as follows:

  1. login to your ClickSend account via their website
  2. click on your profile name in the top right hand corner and select Messaging Settings from the drop down menu
  3. make sure you area on the SMS & MMS tab and click the ADD NEW RULE button 
  4. enter a name for the Rule, select your dedicated number (or choose Any) and in the Action field select URL and enter the URL in the URL field field that appears to the right
  5. click ADD

It should look similar to this screenshot:

You can test out the Webhook by clicking the Add Test Reply button when you click the Rule in the Edit Inbound Rule dialog box that appears.

Still need help? Contact Us Contact Us