Hello. There was a need to implement sending SMS to the phone to the site administrator after receiving the application. For example, the site has a button "ORDER CALL". A person clicks on it, fills out a form and sends data, and I receive this data via SMS. Is it possible to implement this?

For example, there is a site landix.ru , site builder . Here there is a function to send SMS notifications. I thought it worked on Bitrix24, but climbed everything in it and did not find anything like it.

  • By the way, is there any progress? Managed to implement? - void
  • one
    Yes, implemented on SMS.ru. Notification via mail ... @ sms.ru is sent. - Frontender

4 answers 4

Send SMS to the subscriber is possible through the operator’s SMS center. Directly access to the operator’s SMS center is handled either by the operator itself or by the intermediary office. The SMS center, as a rule, communicates with the "outside world", i.e. clients through the SMPP protocol. Communication to the SMS center is usually established via a VPN tunnel. In the case of the SMPP, the client (i.e., you) concludes an agreement with the operator (intermediary), establishes a VPN connection, then writes his code that "can" send PDU packets (which contain SMS) - read the SMPP protocol specification - it is freely available on the Internet) protocol SMPP SMS center and receive and process them.

As a rule, because of the specificity of the SMPP protocol, as well as because of the small difficulty in implementing the program for a programmer who did not have experience with the protocol, and because of the inexpediency of writing and his own individual SMPP application for small projects, the HTTP interface is used provided by an operator or an intermediary: in this case, you call a normal URL (it is called either "via" VPN, or the URL is public. In the values ​​of the URL parameters (the SOAP variant is also possible) the authorization data, ie the login password) is specified, the parameters from which processed by the server, which is then consolidated through the channel transmits the data via SMPP SMS center. This scheme is designed to save the client from developing applications that use SMPP directly. The URL can look like this:

http://operator-vpn-server.ru:8080/http2smpp/send.app?login=xxx&pass=yyy&from=MYFIRM&to=7920XXXXXXX&txt=Hello%20World&my_msg_id=3F000022&resp=true 

The principle of operation in this case comes down to the fact that the operator creates his own universal SMPP client-hub, which is connected to the SMS center of the operator at the output, and on the other hand accepts HTTP requests from outside from numerous clients, i.e. performs the role of HTTP traffic transcoder in SMPP protocol. Thus, the effect of simplified logic is achieved - there are many clients, and there is only one handler, thereby saving each consumer-client from developing their own SMPP applications. Moreover, it relieves the staff of tedious consultations in response to the claims of each client on the topic "I did everything right, but your SMPP does not work" :)

For the delivery of messages from the subscriber to the client (and the delivery status of the messages you send) is used again or SMPP, or you provide your URL, which will be called by the operator (intermediary) side to transfer data of your application.

In your case (say, the URL scheme is chosen) - and the data from the form that the visitor filled out is processed in some script, - you simply add the same URL specified above to the parameters (text) which you enter the necessary information: even though the text itself from the form, even just "Attention, the new form is filled!" - You decide.

  • And how much does the contract with the operator cost? And is it advisable for a small project, where applications of 10 per day come? - Frontender
  • It is impractical) look in the direction of intermediaries, you can easily find intermediaries with a price of 15-20kop per sms, and if you take packages from 10k pieces in total cheaper. Here I think you will be interested in sms.ru/?panel=price - Vladimir Klykov
  • @ Viktor Pavlov, I honestly do not know the rates in the Russian Federation, but, as a market niche, this service is, I think, almost the same everywhere (and relatively cheap). The cost usually depends on the quantity: the larger the package, the lower the price. - void
  • AND? I know that. Why do I need this information? I asked what is better for mensms.ru than sms.ru. - Frontender
  • Both sites provide the same approach — a solution called the HTTP2SMS API, which is very, very convenient. The difference is only in prices. - void

There is a site mainsms there cost one sms 15 kopecks. You can send SMS from the site by sending a letter. Create a template in Bitrix is ​​not difficult. This implementation was implemented by me on the website of the online store for 5 minutes. The goal is to send SMS to the operator with a new order.

  • And what is the advantage of this site compared to sms.ru? There, too, you can send SMS via E-mail. And on the MEANS something did not find sending SMS via E-mail. UPD: found sms2email - Frontender
  • one
    SMS service is not used. What is the difference I do not know. Maybe in prices. In MineSMS you can accurately send through the mail. This is verified in practice. Messages come almost immediately. Chose according to recommendations in different forums. - alekseidolganov

All options are reduced to using the API of a service. What exactly - you decide. Choose by cost, reliability, functionality, convenience API ... I have been using smsclub.mobi for many years. There is an excellent step-by-step instructions on how to send SMS using PHP with specific examples of single SMS, mass mailing, checking delivery reports, etc.

    Here is what you need - jbcallme.ru . Here is just a "Callback Order" with SMS informing. There you can set either your SMS text or specify which fields to send, for example, only the Name and Phone. And not only the callback module is implemented. You can make an order from the site in one click or contact form, the essence is the same. By the way, sms there seems to be free to your number.