# How to send sms to mobiles

**URL:** <https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312>\
**Category:** Rails\
**Created:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312 "2010-06-17T16:22:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirankinuforu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312/1 "2010-06-17T16:22:47Z")

</div>

how to send sms to mobiles

---

<div class="post-metadata">

**Author:** ![kirankinuforu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312/2 "2010-06-17T16:22:48Z")

</div>

There are many ways available to do this.

1.Set up a sms gateway(kannel i prefer) and connect with smsc using smpp  
(can send and get sms).then use your web server to connect with sms  
gateway.  
2.Buy a API from service providers(Google it)(bit restricted).you will  
get a  
URL basically, and you can execute it using curl related functions or  
sockets

Regards  
Cherankrish

On Tue, Jun 15, 2010 at 6:29 PM, karnati kiran

---

<div class="post-metadata">

**Author:** ![kirankinuforu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Post date:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312/3 "2010-06-17T16:26:21Z")

</div>

This may or may not meet your requirements, but if you don’t need 100%  
certainty that the messages will be delivered, most mobile providers  
have an email address you can send a message to. The message will get  
forwarded as an SMS to the mobile device. I’m using this technique in  
my app. Here is a list of some of them.

Alltel removed\_email\_address@domain.invalid  
AT&T Wireless removed\_email\_address@domain.invalid  
Boost removed\_email\_address@domain.invalid  
Cingular removed\_email\_address@domain.invalid  
Cricket removed\_email\_address@domain.invalid  
Digicel removed\_email\_address@domain.invalid  
Lime removed\_email\_address@domain.invalid  
MetroPCS removed\_email\_address@domain.invalid  
Nextel removed\_email\_address@domain.invalid  
QWest removed\_email\_address@domain.invalid  
Rogers PCS removed\_email\_address@domain.invalid  
Sprint PCS removed\_email\_address@domain.invalid  
T-Mobile removed\_email\_address@domain.invalid  
US Cellular removed\_email\_address@domain.invalid  
Verizon removed\_email\_address@domain.invalid  
Virgin Mobile removed\_email\_address@domain.invalid

Make sure the message is below the 160 character limit as there will  
be no confirmation of receipt or notification of failure. The delay  
between sending the message and it being received varies with each  
message, and delivery is not guaranteed (which is also a stipulation  
of the SMS protocol).

Dee

On Jun 15, 9:16 am, cheran krishnamoorthy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![kirankinuforu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Post date:** [June 17, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312/4 "2010-06-17T16:34:42Z")

</div>

You’d use this library, altough you need a clickatell account…

> **[GitHub - lukeredpath/clickatell: NO LONGER SUPPORTED - Ruby interface to the...](https://github.com/lukeredpath/clickatell)**
>
> NO LONGER SUPPORTED - Ruby interface to the Clickatell SMS Gateway API - GitHub - lukeredpath/clickatell: NO LONGER SUPPORTED - Ruby interface to the Clickatell SMS Gateway API

El 15/06/10 18:30, chewmanfoo  
escribió:\> To clarify: sending an email to one of these addresses, and getting it

---

<div class="post-metadata">

**Author:** ![kirankinuforu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Post date:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/how-to-send-sms-to-mobiles/190312/5 "2010-06-17T16:27:00Z")

</div>

To clarify: sending an email to one of these addresses, and getting it  
trannsformed into an SMS message depends on that carrier’s SMSC having  
an email gateway device, which is essentially some sort of SMTP server  
which reads messages and makes an SMS message out of them. If the  
carrier did not have an email gateway, this sort of thing wouldn’t  
work. One should not assume that SMSC is some sort of email  
technology such that all messages sent from handset to handset get  
transformed into emails.
