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.
Related
create and import contacts and groups. send a single SMS, or send
bulk SMS to a group or multiple groups. connect to any SMS gateway
with minimal configuration. customize your SMS or email. add a link to your SMS
and email.
The message is composed using a web application that is stored and executed on a HTTP server and then sent through the internet ("the cloud") as an email message.
The email is received by a Short Message Service Gateway (SMS Gateway), which converts the message from an email message to a SMS message.
The SMS message is then handed to a Short Message Service Center (SMSC), which is a server that routes data to specific mobile devices.
The message is finally transmitted over the wireless network to the recipient.
Most wireless networks have a SMS gateway through which email messages can be sent as text messages to a mobile device. This is nice, because, from a developer's standpoint, it is generally free—however, it is of course not a free service for the end user. Fees still apply to the recipient of the message and messages sent via email will be billed as a non-network text message
we can use php mail() function to send sms but you have to purchase the SMPP frome network provider
you can use gateway like way2sms gateway for php send sms through php
easy use a sms getaway, we use https://developers.messagebird.com/docs/sms-messaging for a phone validation
I want to record the voice message from view side and send the voice message to phone number using Twilio.
I am using Laravel PHP framework. I have already implemented to send the text message to phone number by Twilio.
As i am getting your problem is first you need to record a message and then that recorded message should be sent using twilio.
So, first you need to record the message and store it on your server or S3 bucket or whatever you are using for storage. And pass that url to your Twilio.
Secondly, you need to send that recorded message as an MMS(Multimedia message) using twilio. For that your ‘to’ and ‘from’ numbers should be capable of sending out MMS messages, you can check that on your twilio account.
For MMS sending in php check this out : https://www.twilio.com/docs/guides/how-to-send-sms-messages-in-php#sign-up-for-a-twilio-account
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!
I know you can send an SMS to a mobile phone using the recipients # and carrier suffix. Is it possible to send SMS to a Google Voice # using the same method?
If so, what is used for a carrier suffix? (5552125689# ??? )
mail("5552125689#txt.att.net", "", "You have a new message", "test#mydomain.com");
Thanks
As far as I know, Google Voice does not support email to SMS.
You would most likely need to use an SMS gateway service like Twilio to be able to send to Google Voice.
Here's how to send an SMS with PHP and Twilio.
Does anyone know how can i send a sms messsage when e-mails are arriving in a gmail account?
I know some PHP, C/C++ and C#, and I plan to read the new message using POP3. The problem is that I don't know how can I send a SMS message to a mobile phone. Do I need a SMS server?
can you give me some advices?
you need to register with and buy credit at some bulk SMS gateway with API. personally, i would recommend: http://www.clickatell.com/
which allows to send SMS via email, HTTP/GET/POST, REST, XML etc.
Many cell carriers have the ability to send SMS messages to an email address (ie yourphonenumber#telus.com). If you're sending to a specific mobile phone (for keeping an eye on your website, say), this would be something to look into, because it's free and simple. For the general case of sending an SMS to any mobile phone, that's somewhat more complicated. You can either hook into an SMS gateway (such as clickatell, as dusoft mentions), or you can attach a GSM modem to your PC and send commands through it.