SendMmsMessage
This command sends a specified MMS message from the specified GSM port.
Data session should be UP on the specified GSM port with appropriate APN and MMS parameters set to send MMS out.
MMS message is composed from the content of the specified media files that cab be of the following File Type: UTF8, UTF16, UCS2, US_ASCII, JPEG, GIF, TIFF, PNG, WBMP, SMIL or SPECIFIC. Up to four media files can be specified. All email and number parameters can contain multiple addresses, separated with ',' character. Sender visibility flag can be TRUE or FALSE. Priority can be LOW, NORMAL or HIGH. Multipart type can be MIXED (without MMS presentation file) or RELATED (first specified file has to be MMS presentation SMIL file). If any of required parameters is not needed it can be specified a NULL string (""). Subject cannot be NULL string!
Command waits until MMS message is sent or general timeout expired.
An optional timeout (in seconds) can be specified.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
SendMmsMessage | Port index, MMSC URL, MMS Proxy, SenderName, Visibility, Priority, Subject, RecipientEmail, RecipientNumber, CcEmail, CcNumber, BccEmail, BccNumber, MultipartType, FileType, FilePath, ContentId, ContentType,[ FileType, FilePath, ContentId, ContentType] [ Timeout ] | Error Code in case of error. |
OUTPUT
Command status in the following format:
"%s\n", command_status (MMS MESSAGE SENT | DATA LINK IS DOWN | DESTINATION HOST NOT REACHABLE | FILE NOT FOUND | BAD PARAMETERS | TIMEOUT EXPIRED)
EXAMPLE
~# SendMmsMessage 1 "http://mms.vodafone.it/servlets/mms" 2161933:8080 "Sender Name" TRUE HIGH "MMS" "emailrecipient@hotmail.com" "+33612345678, 0612585858" "" "" "" "" RELATED SMIL "/mnt/sdcard/tmp/test.smil" "<001>" JPEG "/mnt/sdcard/tmp/picture.jpg" "<002>" SPECIFIC "/mnt/sdcard/tmp/video.mp4" "<003>" "video/3gpp"
MMS_MESSAGE SENT
~# SendMmsMessage 1 "http://mms.orange.fr" 1916200:8080 "User Test" TRUE NORMAL "Hi my message" "emailrecipient@hotmail.com" "0612345678" "" "" "" "" MIXED GIF "/mnt/sdcard/tmp/picture.jpg" "<002>"
FILE NOT FOUND