Categories Site Actions X

Quick Code: Sending a txt with PHP

Posted on Saturday, June 5th, 2010 in Internet, Other by Nick

This little quick tutorial shows you a neat thing that most people don’t know. That being you can send a txt to a phone using PHP.

Overview:
Almost every carrier has a way you can email a message, aka txt, to a phone on their network. With PHP you can send emails. So for example, you would send a email to 5025558547@vtext.com to send a txt to (502)-555-8547, who is one Verizon’s network.

Sending a Email in PHP:
To most basic way to send a email in PHP is to do this:

The above code sends a email to indypatriotfan@gmail.com with the subject of “Hi” and the content of “It Sent”. See; That was literly 1 line of real code. Of course it doesn’t have everything you could do, but I’ll leave it like that for this tutorial.

The Carrier Emails:
Here is a small list of some common carrier emails.

Alltelmessage.alltel.com
AT&Ttxt.att.net
Belltxt.bell.ca
Boost Mobilemyboostmobile.com
T-Mobilesms.t-mobile.at
Tracphonemmst5.tracfone.com
Verzion Wirelessvtext.com
Virgin Mobilevmobl.com

Here is a complete list

Example:
You can view a demo for this here. Thanks to Tyler Jefford for the scripting and the hosting of the demo.
Below is just some sample code.

HomeForumsQuick Code: Sending a txt with PHP

This topic contains 0 replies, has 1 voice, and was last updated by  Nick June 5, 2010 at 12:23 AM.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3172

    Nick
    Keymaster
    • Offline

    This little quick tutorial shows you a neat thing that most people don’t know. That being you can send a txt to a phone using PHP. Overview: Almost ev
    [See the full post at: Quick Code: Sending a txt with PHP]

    Please let me know about any site issues!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Join the forum to add your own thoughts!