Send SMS from the Internet (do you have some providers)?

I would like to have something similar to app.net. You press the button and get the opportunity to send a link to your phone using SMS (or email). What are some options for implementing the related side of things, and are there any open source services or packages that provide this?

Here is a random example from app.net . Click the "Get this app" button to see what I mean.

Something like this will work even for me <a href="http://saasSMS.com?url=mycorp.com/test.html">Send link to Phone</a> Where "saasSMS.com" is some service that handles all sms side. Ideally, you can either process this through a link, or through a form message (and it will redirect back to your site for success or something else).

What I do not need . A drop-down list that allows you to select your operator and some php page that is trying to send you an email @ vtext.com or the like. This is simply not enough.

+4
source share
3 answers

You can use the ViaNett API to send SMS messages worldwide without an operator.

As long as your backend supports HTTP request calls, it will work.

Here is an example written in PHP:

 <?php // Register here to get a username and password: // http://www.vianett.com/en/free-demonstration-account if (vianett_sendsms('username', 'password', 'example', '+4412345678', 'Hello world', $error)) { echo 'Success!'; } else { echo $error; } function vianett_sendsms($username, $password, $from, $to, $msg, &$response=null) { $url = 'https://smsc.vianett.no/v3/send.ashx'; $data = array( 'user' => $username, 'pass' => $password, 'src' => $from, 'dst' => $to, 'msg' => $msg ); $qs = http_build_query($data); $response = file_get_contents($url.'?'.$qs); return $response == '200|OK'; } 
+1
source

We get good results from http://www.twilio.com

+1
source

For direct SMS, you can contact the service provider and conclude a contract with him. If it is available for small projects and a server, you can place a mobile phone or a GPRS modem and send it.

0
source

Source: https://habr.com/ru/post/1432389/


All Articles