I want to send sms from my website using php and html but I just found that to do this I need to pay a gateway and then add it to my website.
I want to use the credit of my android phone, do you know how to send sms using my credit?
I will give you a beer by paypal if you help me.
Forgot to say that php mail function doesn't works because in my country is not supported to send a SMS by email :(
You can try using Nexmo. you won't send sms using your phone credit but you'll use your account credit that you can top up with paypal and other methods and you will just have to call their restful API to send sms directly from one php code line (file_get_contents), no gateways...
Related
I am using NEXMO API for integrating SMS functionality for my stuff.
However I am getting the error as "Unroutable message - rejected"
I don't understand what's wrong with my source code.
Actually I want to send SMS on Indian as well as Nigerian numbers, and I would like to mention that both numbers are free of DND service.
Do you have any idea guys which the primary setting is need to do for sending SMS.
[Currently I have created a test account on NEXMO].Is their any limitations while using test account ?
This might help others if they stumble upon this problem...
If you are using a trial account, you must add test account phone numbers using the API dashboard:
API Settings -> Edit -> Add Number (bottom of page)
Cheers
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.
I know I can send sms through php using api or gateway.
But my question is how those websites send sms through our mobile no. How is this done.
Any help
SMS is fundamentally like email, it trusts the sender to be truthful about who they are sending from. I use clickatell to send SMS and in the early days - 2004/5 you could send an sms to anyone from anyone without any special permission, but they quickly shut this down for security reasons, you now have to register and prove your rights to send from a particular address.
Basically in order for you to do it you need to either sign up with a mobile provider or have an agreement with your sms provider to allow you to send sms from whoever you wish. There may be senders out there who are less strict in setting the sender.
They would communicate with a provider (possibly through a third party) also using an API of sort. One of the parameters they would pass is a source number. So when the SMS is sent there is header information saying it came from a specific number. It is possible to set this value to a text string too instead of a number. So the SMS might look to come from for example 'STACKOVERFLOW' instead of '12345678'.
I have been asked to design a website for a client but one of the requirements is that there is a form which includes such things as name, email, dob and mobile number once the user submits the form a SMS is automatically sent to the users mobile almost like a autoresponder.
How to achieve this?
This can be done using an external SMS gateway which will not be free, but also not awfully expensive.
However, you say you are not a programmer. For this to be built well and most important of all, safely, it might be a good idea to use the services of one.
If you want to do it yourself, consider using a pre-paid plan with the SMS provider of your choice so you can't be ruined by a bot flooding your form with thousands of requests.
Web sms functionality can be added to any web application or website. As #Pekka said you need to use an external SMS gateway and to connect your application to this SMS Gateway. Most SMS gateways provide external API which can be used to do that. They usually have documentation which you can use to find out how to integrate SMS notification in your PHP code. Unfortunately there are no reliable free sms service provides so you have to pay for this sms service. You can check http://www.phpjabbers.com/web-sms/ which seems to work a lot easy. Their integration code is pretty simple:
<?php
$SMSLIB["phone"] = '44111222333'; // your phone number
$SMSLIB["key"] = 'abcdefghijklmnopqrs'; // your personal API code
include("smslib.php"); // we will provide you with smslib.php file
sendSMS("test message", $SMSLIB["phone"]); // function which sends the message
?>
The easiest way to do this is to send it to their mobile numbers assigned email address (which is different by each carrier) then have it sent like a normal email.
The only issue is you will probably have to have a Dropbox with each carrier then add something to the PHP that changes the email address (ex. $tmobile would be tmomail.net).
More info:
How To Send Email To Any Cell Phone (for Free)
Most of mobile carriers offer free Email To SMS gateways which can be used to forward simple text emails to a mobile phones. And the good news, majority of those gateways are free and available to the general public.
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.