Php - Twilio MMS not sending if image link is broken/unavailable - php

I have an application that uses Twilio to send MMS messages. It works fine; however, when the image link provided is broken/unavailable, it does not continue to send the MMS.
In my application I have a module that sends the image to the server via FTP. From that, I get the URL of that image and attach it on the MMS message. For some reason, if the image doesn't successfully uploaded to the server via FTP, the image link will be broken, and thus it does not send the MMS.
Can you please help me resolving this issue?
Thanks.

Megan from Twilio here.
Sending MMS messages relies on the MediaURL thus if the URL you are trying to send through is broken, it will not work.
In the example:
$client->account->messages->create(array(
'To' => "+16518675309",
'From' => "+14158141829",
'Body' => "Check out this awesome image!",
'MediaUrl' => "http://farm2.static.flickr.com/1075/1404618563_3ed9a44a3a.jpg",
));
if the flickr image link were to break you would not receive the MMS portion of this message.
I've dealt with some tricky ways of handling image URLs via the file system in this post, perhaps you will need to finagle something similar into your code.
Hope this helps!

Related

Can I send MMS messages with PHPMailer?

I am trying to send an image message to cell phone like SMS. I used the PHPMailer to email the image like
$mail->addAddress('222222222#txt.bell.ca','');
$mail->addAddress('222222222#mms.bell.ca','');
$mail->addAttachment('img/map.png', 'map.png');
This is sending the text but I am getting
A MIME attachment of type <image/png >was removed here by
instead of the image in iPhone 4. I searched the web for this and I think I must use a MMS Gateway to send the image. Is that the case?
yes you would have to use MMS Gateway to send an image. This is because MMS is Multimedia Messaging Service and SMS is Short Messaging Service so that's you need the MMS gateway to send the image (multimedia)
Hope this helped.

Image push notification with Google cloud messaging

How to attach the image in push notification with Google Cloud Messaging ..Is it is possible to attach image, can any one tell how to attach..(or) it is possible like attach image in the form of URL/Text.. please provide me some sample example..
Maximum size of the push message can be upto 4KB. Therefore it is recommended to put the image on server somewhere and pass the url link of that image via push.
I don't think that's the correct approach. Each GCM message is limited to 4KB of data, so unless you want to send messages as it was somekind of TCP protocol, you shouldn't use it.
Sending images is probably better to be done with a HTTP POST request to the remote server (as the GCM architecture requires), and afterwards process it.

PHP Force remote image download or remote requests inside an email

I am sending our HTML newsletters with an image on each email that help us know if a person actually received that newsletter.
I just add in the HTML body of the email a img tag like that:
<img src="https://www.example.com/read/BASE64URLENCODED_DATA" />
BASE64URLENCODED_DATA is something that I can read on server when the request arrives to know the email address that downloaded that image. We receive the request to download that fake image, we save the data and return some headers to show a transparent image of 1x1 px.
The problem is that usually this works for no more than the 10% of the total emails sent on each newsletter. This means that most of the email clients that receive our newsletter don't permit the downloading of images (showing the classic message "If you want to download attached images click here...").
Is there any way to force an email client to make a remote request like that?
We need to produce more realistic statistics for our newsletters but we can't find a way to force this remote requests or fake images download.
Thank you.
A longer answer - there may be ways how you can trick some e-mail clients, but this will work only on a particular client. There are lots of different clients out there. Maybe you find a way of tricking Oultook, but no guarantee that it works for Google Mail or other web mail service. Then there is Roundcube, Squirrelmail, Horde and other web clients. Then the mobile devices come in - iPhone/iPad mail client, Android mail clients, Outlook mobile.. No, you don't want to do this.
And even if you find a way of tricking all those programs (which I highly doubt), most likely your message will be malformatted and most spam filters will catch it as spam.

MMS Service or Email service for application

I need some help figuring out how to develop the following proposed solution:
Users should be able to send a photo via MMS message to a number - this image then needs to be picked up and processed through a web application. The application is currently written in PHP and works with manual file upload, how could I incorporate the MMS functionality into this so that it could process the users image. The application takes an image and modifies it. This is the final image that would need to be returned to the user (again via MMS)
Secondly, there also needs to be functionality for a user to email an image to an address (eg email#example.com) - the application then takes the image, processes it through the application and emails it back to the user.
Any advice or direction would be much appreicated.
For the SMS aspect of your requirements, you should check out Twilio, they are for sending and receiving SMS, thought I'm not sure how they function with MMS. Still worth looking over though.

How to put a hyperlink into an MMS message?

What language is used to insert hyperlinks into an MMS message?
I'm sending MMS messages to my cellphone, from my computer, but don't know how to include a link.
I'm using php to send emails to the MMS service. Images and plain text show up just fine.
You should probably just include the link in plaintext. However, there is another way detailed here:
http://discussion.forum.nokia.com/forum/showthread.php?193656-Invoking-Browser-from-MMS

Categories