Send MMS Message from Command Line

A Windows command line script that enables sending MMS messages from the command line can be downloaded form http://www.nowsms.com/download/sendmms.vbs.txt.

Assuming that the script file is saved as a file named smsmms.vbs, you would issue the following command to send an MMS message:

cscript sendmms.vbs recipient[,recipient2,recipient3...] filename [filename2] [filename3...] [variable=setting]

recipient can contain either one recipient phone number, or a comma delimited list of recipients, e.g., +44777777777,+44777777778 (important – do not include spaces)

filename is the name of a local file to be included in the MMS message. Similar to when submitting an MMS message via the “Send MMS Message” web form, you may specify multiple files that NowSMS will package up as an MMS message. (Note: NowSMS identifies content types based on the file extension of the submitted file, see the MMSCTYPE.INI file for the default list of file extension to MIME type mappings.)

variable=setting can specify additional URL parameters supported by NowSMS, such as:

MMSSubject=SubjectLine

MMSFrom=SenderAddress

MMSDeliveryReport=Yes

MMSReadReport=Yes

MMSPriority=High Normal Low

MMSMessageClass=Personal Informational Advertisement

MMSForwardLock=Yes

DRMRestrict=Yes

DRMRestrictTextXML=Yes

DRMPermissionPlay=Yes

DRMPermissionDisplay=Yes

DRMPermissionExecute=Yes

DRMPermissionPrint=Yes

DRMConstraintCount=##

DRMConstraintStart=yyyy-mm-dd

DRMConstraintEnd=yyyy-mm-dd

DRMConstraintInterval=##

Note: If the Subject line contains a space character, put quotes around the setting, e.g., “MMSSubject=This is a test message”

Examples:

cscript sendmms.vbs +4477777777 image.gif filename.txt “MMSSubject=This is a test message”

cscript sendmms.vbs +4477777777,+4477777778 image.gif “MMSText=This is some message text” MMSFrom=+44777777779 MMSSubject=Test

cscript sendmms.vbs +4477777777 image.gif “MMSText=The content of this message has been forward locked” “MMSSubject=Forward Lock Test” MMSForwardLock=Yes

Additional variable options:

MMSWAPPush=Yes – indicates that the message being sent should be sent as an “Multimedia Content Push” message via WAP Push instead of as an MMS message.

MMSSMSPush=Yes – indicates that the message being sent should be sent as an “Multimedia Content Push” message via a URL link in a text SMS message instead of as an MMS message.