How to process an incoming sms/mms with picture with twill - twilio

I have create a simple app to receive incoming sms and forward as to an email address. Everything works great until I add a picture taken from my phone to the message.
How can I process an incoming message containing a picture?

Twilio evangelist here.
Unfortunately today MMS is only supported on Canadian 10 digit phone numbers. MMS is only available in the US on short codes. We are working hard to make MMS available globally.
Hope that helps.

Related

Service to receive SMS messages from short codes?

So I need to programmatically receive text messages from a shortcode. Twilio does not support this. Anybody know a service like Twilio but that is able to receive SMS messages from a short code sender?
Just to be clear. I need to receive a text message from a shortcode to a 10 digit number, not send from a shortcode.
Most services (Twilio, call fire) that let you send from a shortcode can not receive a text message from a shortcode
This can’t be done, shortcodes are unique to each carrier network, when a short code is available across multiple carriers it is implemented on each carrier separatly.
Also shortcodes are not international so 54321 could be used in both the UK and US by totally separate services.
SMS providers like Twilio and Vonage connect to the carriers in the same way as the shortcodes do, they are both an application connection. The carriers do not permit app to app messaging through their network so a shortcode app will only ever be able to send to a real subscriber with a SIM card.
You might find some providers that offer an SMS API by using banks of hosted SIM cards but this can be very flakey and you are usually sharing the number. The other option might be to look at hosting your own SIM card in a usb single or such and recieve the SMS that way.
Actually, Twillio does support this now, although with a big disclaimer that it "cannot guarantee that every short code globally will be able to reach Twilio numbers"
https://support.twilio.com/hc/en-us/articles/223181668-Can-Twilio-numbers-receive-SMS-from-a-short-code-?_ga=2.202438166.641482548.1608644940-210958917.1588771372
I think this article might be just what you're looking for https://help.nexmo.com/hc/en-us/articles/216487658-Inbound-SMS-on-dedicated-US-short-code
You should be able to receive SMS messages on a dedicated US Shortcode.

Send mass texts with iOS

Is there anyway to send the same text to multiple contacts not as a group text. I have been told that it would need a server to accomplish this. If that is the case I would like to be able to still send texts from my current number not a new number. I have checked out Twilio but have not gotten very far.
Twilio developer evangelist here.
You cannot send mass text messages using Twilio and your existing phone number.
One option you might have is, if you have a Mac you can control the SMS app programmatically to send lots of SMS messages. Here's a blog post with some example code to do that: https://www.twilio.com/blog/2017/06/drawing-pixel-art-text-messages-signal-video-wall.html
That might not be of much help, but while you can send lots of SMS messages with Twilio, you cannot do so using your existing number.
Yes you could send mass texts out to different numbers using twilio. No you could not use your current number.
You would have to purchase a new twilio number that has SMS messaging enabled.
Look at the Twilio documentation and their get started guide, figure out the language you want to create your server in and you will be sending texts in no time. https://www.twilio.com/docs/quickstart/node/programmable-sms You would run the webserver. Twilio does not offer a swift or ios based SMS solution.
https://www.twilio.com/docs/quickstart?filter-language=swift

Twilio MMS Messages within the UK

I have an app that integrates with Twilio for SMS and MMS. In the US, when a MMS message is received, the app accesses the attached picture via one or more MediaURL tags in the incoming message.
Now the app may be used in the UK. In the Twilio docs it says that Twilio does not support MMS between US and UK numbers, but what about receiving MMS sent from a UK number to a Twilio UK number? Is that supported? If so, will the app still access the attached picture via MediaURL tags?
Thanks
I know this question is a year old, but I too have this problem and have just had a definitive answer from Twilio on this very topic.
Marcos Placona is correct that there is a setting called MMS Converter that will append a short URL linking to the media content to the end of an SMS messages where the carrier can't handle an MMS message.
However - this is again only available to US and Canadian users. I know this because I enabled it on my account today and sent some test messages from my UK mobile to my Twilio number. Any message that contained a photo didn't arrive. Nor did it appear in any inbound logs in my Twilio account anywhere.
I had this confirmed by Twilio support on Live Chat today. He also said there was no roadmap to add in either MMS support or MMS Converter support for the UK. This contradicts Twilio's own website content that talks about guidlines for UK SMS messaging using Twilio:
See for yourself here: https://www.twilio.com/sms/guidelines/gb
It's pretty frustrating for guys like us who use Twilio services in the UK! I think Twilio is great, but I will need to find a suitable alternative provider that does support MMS messaging or at least conversion to SMS with an embedded URL.
If anyone has any suggestions, I'd love to hear them!
Twilio developer evangelist here.
Currently MMS is only supported in the US and Canada. However, we do realise it's a pain to have to change your system based on which country the message was sent from.
So if you go into the settings page for programmable SMS here, you can configure MMS Converter. That way, messages sent with a MediaUrl to a recipient whose carrier does not support MMS can be sent as an SMS with a shortened URL linking to your media.
Hope this helps you!
I solved this problem, by renting an MMS enabled US number and sending the MMS to my other Twilio number from there.

Twilio MMS Number

I am using the software DSLR-Photobooth. Included is Twilio to send the made pictures directly. Twilio-site says I need a number for that, but there are just SMS and voice numbers. How can I get a MMS Number?
Thanks
Enrico
Enrico, where are you trying to buy a number in order to start sending MMS?
You may want to check out this list of SMS enabled numbers and look for 'Yes' in the MMS enabled box.

Receive MMS message in Twillio

Does anyone know how I can receive an MMS through Twilio? I checked online and found software to receive an SMS but not an MMS, since it's a new feature. The number I have is MMS-enabled. If I can receive it through an app, on email, anything would help.
Twilio evangelist here.
As long as your Twilio phone number is MMS-enabled you can receive MMS messages with it. Twilio currently offers MMS-enabled Twilio phone numbers in Canada and MMS-enabled Twilio short codes in the US.
If someone sends an MMS to your Twilio phone number or short code, Twilio is going to make an HTTP request to the Messages URL you have configured for your phone number. That request is going to include a bunch of parameters:
https://www.twilio.com/docs/api/twiml/sms/twilio_request
For each media element included in the MMS message, the Twilio request will include a MediaUrl parameter that has a URL you can use to grab the media element.
Hope that helps.
If you have a twilio number, and it is indeed MMS enabled, you should first verify that it is actually getting where its supposed to go. Not only does the twilio number need to support MMS, whatever number you are sending needs to as well.
After you send a test MMS to your twilio number, log into you account and check the message log - if you don't see it there, one of your numbers isn't supported.
https://www.twilio.com/user/account/log/sms
if you can't see the message in the log, no code is going to help.
If the message is indeed making it to your twilio number, then this is the relevant documentation on how to receive MMS in your app:
https://www.twilio.com/docs/api/rest/message

Resources