How to send text messages with PHP

thumb5
Sending a text message (SMS) is easier than you think.
When sending a text message to a cellphone with PHP, an email is sent to the carrier like this:phoneNumber@carrierDomain, rather than a text message.
How it works:
1. The message is composed using a web application on an HTTP server that is sent as an email through the internet to a Short Message Service Gateway (SMS Gateway).
2. The SMS Gateway converts the message from an email message to a SMS message.
3. The message is sent to a Short Message Service Center (SMSC), and is then transmitted over the wireless network to the recipient.
 

The PHP

To send a text message, we will be using PHP’s mail function for sending emails.
  The code below will send a text message to 5558349324 with the message “Test SMS” and the sender is RRPowered.
This is a fairly straightforward method.

Mobile carrier list

AT&Tmobile.att.net, txt.att.net
Cingularcingularme.com
Sprintsprintpaging.com, messaging.sprintpcs.com
Verizonvtext.com

Conclusion

Easier than you thought, right? A lot of people assume text messaging has its own protocol, but in fact it doesn’t.
I hope you find this useful in your projects.

Tagged with:

View all contributions by

Website:

Related Articles

Stay connected with us

Add us on Google+

Follow us on Facebook

Follow us on Twitter

Get updates via RSS

Get email updates

FEEDBACK1

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">