Skip to main content
Solved

Unable to send MMS in Python

  • 21 January 2020
  • 2 replies
  • 444 views

So I can send SMS just fine when I try to send MMS i get an parameter [] is invalid exception

where _img is a link to an img file. Can't seem to find any documentation on this at all...

params = {'from': {'phoneNumber' : number}, 'to':[{'phoneNumber' : toNumber }], 'text' : message}, _img
resp = platform.post('/restapi/v1.0/account/~/extension/~/sms', params)

2 replies

Userlevel 2
Badge

Even your snippet code is broken so I don't know what is the exact parameter syntax do you use.

Anyway, here is the sample code for sending MMS using Python.

Anyway, I tried your code, I get 'attachement is not defined at builder.add(attachment)?

Reply