Skip to content

SendMultimediaMessage

An MMS message is a multimedia message such as an image, video or audio file. If the recipient’s phone supports MMS, this rich content will appear in line with other text messages.

For us to send MMS, the content must be hosted on the Internet and you must supply a URL to retrieve the content. Please confirm the validity of the content before sending. If the content cannot be downloaded, the recipient will not receive the message. We are unable to determine this upon sending and will still need to charge for the message.

Swift recommends keeping your media sizes to no larger than 3 MB. This helps ensure compatibility with most carriers. MMS also supports a wide variety of media types, including (but not limited to):

  • JPG
  • GIF
  • HEIC
  • VCARD
// uses JQuery library
var postUrl = "https://secure.smsgateway.ca/services/message.svc/"
+ accountKey + "/" + destinationNumber = "/MMS";
var body = JSON.stringify({
URLOfContent = "http://location.of/mms_image.jpg"
});
$.ajax({
url: postUrl,
method: "POST",
contentType: "application/json;charset=UTF-8",
data: body
}).done(function(response) {
alert(response);
}).error(function (xhr, textStatus, errorThrown) {
alert (xhr.responseText);
});

HTTP Request


POST:

/services/message.svc/:accountKey/:destinationNumber/MMS

ParameterDescriptionLocation
AccountKeyYour Swift SMS Gateway account keyURL
DestinationNumberCell number to receive the text messageURL
URLOfContentFully qualified URL to the image to send via MMSBODY

Returns

string

See (SendMessage) for more details.

This method may also return

>

Response Description
Cannot send MMS outside Canada and US

At this time, we only support sending MMS to Canada and the United States