One of these days I attended to the delivery of SMS notifications from our
site for customer servicing of computers in Kiev , users create tickets, administrators should be notified about the problem at the client instantly.
Already working notification by e-mail, icq.
But what if the administrator is on the road and does not have access to mail and messenger? You need to make a notification SMS. This will be useful for both admin and user, since the latter will be notified of the processing of his problem / request.
Options, as it turned out, several.
Use the email2sms table of the gates of mobile operators, Kyivstar and UMC (MTS) have one. But the operator Life :) is suxx, since it does not provide such a gate for use. Therefore, this option of sending notifications disappears: (Well, for operators in other countries (Russia) the email2sms table of the gates to compose the question is one more.
- Difficult, but fairly correct way. We connect the mobile phone to the server, set the daemon who knows how to work on the com-cord with the phone and send sms. The main thing to remember to replenish the account of a mobile phone.
')
Minuses:
buy a mobile phone, go to the data center and stick a mobile phone into the server. Not the fact that from the containment will catch the signal. Mobile phone must be permanently connected to the charger.
Pros:
low cost smsk, stable message delivery.
- The most correct way is to use the SMS Gateway API and communicate with the gate via SMTP, SMPP, HTTP, SOAP and so on. Additionally, it is possible to assign a Caller-ID, for example, “IT-Premium”, which is very cool when you receive a message and it is marked as sent from this addressee, and not from a regular number.
The first in Google with pagerank 7 got clickatell.com
And it is clear why: the most rich in API capabilities and inexpensive compared to other providers . By the way, for 400 sms to Ukraine (this is the minimum that you can buy) the price is about $ 25, which is quite acceptable. And even on github there is a great gem for easy working from Ruby with the API clickatell.com.
After activating the account on clickatell.com, they gave 10 test credits (read SMS). I put the ruby ​​gem described above, tested sending a notification from the site, and, oh, a miracle, the sms came within 10-20 seconds.
All, I think, we will use on the site. And he went to buy loans with the help of a visa Privatbank credit card.
I try a transfer from a credit card ... and I get
Your recent purchase of Clickatell credits was not successful. Please
find the details of the attempted transaction below:
Payment ID: 277682
For your number of reasons:
1. Issuing bank does not allow internet payments
2. Visa, Master or Amex declined the transaction
3. Card type not recognized
4. Incorrect details entered on credit card form
5. Expired Credit Card
6. Insufficient funds
7. Transaction not approved by fraud screening system
8. Invalid Card
After correspondence with the support, it turns out that Ukraine is defaulted on the list of unreliable countries, and payments from it are not accepted. My Visa and Paypal payments did not work. And with the rest of the strange payment methods, such as Wire Transfer in Zimbabwean tugriks (!) their bank is located in South Africa, I have not figured it out (I think that my bank will also blink at the word of Zimbabwe), plus a rather big commission for swift payment :(
Therefore, the question in a respected Habr audience: what is the most correct way to implement SMS notification to administrators and users without being tied to sms2email gateway providers (not everyone has them)?
And if someone helps with the payment on clickatell.com, I will be extremely grateful and, of course, will compensate the costs by bank transfer to your account, and in a sign of appreciation I will put your link on
my website . For communication on this issue, I propose to use habrapost or email

.
Thank you for your attention, I suspect that the topic of sending notifications does not concern me alone.
UPDATE:
Let us summarize the links to SMS Gateway compiled:
smsonline.rusmsc.rusmster.runapishi.rusmstraffic.rusmsmail.ruwww.sms4b.ruyakoon.comterasms.rusms.privatbank.ua but without API and only for mass mailings