• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozMobileMessageManager
  6. MozMobileMessageManager.sendMMS()

MozMobileMessageManager.sendMMS()

In This Article
  1. Summary
  2. Syntax
    1. Parameters
    2. Return
  3. Specifications
  4. Browser compatibility
  5. See also

This API is available on Firefox OS for internal applications only.

Summary

The sendMMS method is used to send an MMS message to one or more receivers.

Syntax

var request = navigator.mozMobileMessage.sendMMS(param);

Parameters

param
A configuration object which is an MmsParameters object

MmsParameters

Those objects are regular JavaScript objects with the following properties:

receivers
An array of strings, with each string representing the phone number of a receiver.
subject
A string representing the subject of the MMS.
smil
A stringified version of the SMIL document defining the MMS.
attachments
An array of Attachment objects used by the SMIL document.

Attachment

Those objects are regular JavaScript objects with the following properties:

id
The unique id of the attachment.
location
A string representing the name/location of the attachment within the SMIL content of the MMS.
content
A Blob representing the content of the attachment.

Return

A DOMRequest object to handle the success or error of the operation.

Specifications

This is a non-standard implementation, but it is discussed at W3C as part of the System Application Working Group.

Specification Status Comment
Messaging API Editor's Draft Editor Draft (WIP).

Browser compatibility

For obvious reasons, support is primarily expected on mobile browsers.

  • Desktop
  • Mobile
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support No support No support No support No support
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support 12.0 (12.0) Moz No support No support No support

See also

  • MozMobileMessageManager
  • MozMmsEvent
  • MozSmsEvent

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • DOM
  • Firefox OS
  • Method
  • Mobile
  • Non Standard
  • Reference
  • Référence
  • WebSMS
 Contributors to this page: chrisdavidmills, fscholz, kollishivagangadhar, kscarfone, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:08:22 AM
See also
  1. Mobile Messaging API
  2. Archive
  3. Events
    1. open
    2. message
    3. error
    4. close
    5. sending
    6. sent
    7. failed
    8. deliverysuccess
    9. deliveryerror
    10. retrieving
    11. received
  4. Related pages for Mobile Messaging API
    1. MozMmsEvent
    2. MozMmsMessage
    3. MozMobileMessageManager
    4. MozMobileMessageThread
    5. MozSmsEvent
    6. MozSmsFilter
    7. MozSmsManager
    8. MozSmsMessage
    9. MozSmsSegmentInfo
    10. Navigator.mozMobileMessage