470,862 Members | 1,805 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

Sending SMS with PHP

How do you send an SMS with PHP? Right now, I send text messages to
verizon users by just adding @vtext.com to their phone number and
emailing that. Is there something like this that I could do for other
phone companies? Or is there some universal way to send a text message
to any number from PHP?

Feb 20 '06 #1
4 1885
DJ Craig wrote:
How do you send an SMS with PHP? Right now, I send text messages to
verizon users by just adding @vtext.com to their phone number and
emailing that. Is there something like this that I could do for other
phone companies? Or is there some universal way to send a text message
to any number from PHP?


Yes, send through a SMS gateway. Clickatell is one:
http://www.clickatell.com . IIRC, they have an API which allows you to
send messages through SMTP or a normal HTTP POST.

Cheers,
Nicholas Sherlock
Feb 20 '06 #2
There exists other gateways as well. http://www.aspsms.com/ is the one
I use to send SMS with PHP. Some guy wrote a nice PHP class that
handles everything between the gateway and your script:
http://www.net-track.ch/opensource/phpaspsms/

Then, sending an SMS becomes as easy as:

$sms->setOriginator("...");
$sms->addRecipient("...");
$sms->setContent("An SMS message.");

Usage of al those SMS gateways is not free though, but prices are
cheaper than sending SMS with mobile phones.

Feb 20 '06 #3
Thanks, that's exactly what i was looking for. But in the end, I found
a slightly messier, less reliable way of doing this for free:
http://www.livejournal.com/tools/tex...l?mode=details

Feb 20 '06 #4

You can try StrikeIron's reliable Global SMS service - covers 416
carriers in 160 countries.

http://www.strikeiron.com/ProductDetail.aspx?p=190

Also comes with PHP & Perl code examples for the Global SMS Web Service
- all you need is the number and text to send, and it can be integrated
into any application or Web site, as well as used from a Web form or
desktop client.

PHP Code Example:

http://www.strikeiron.com/support/samplecode.aspx
DJ Craig wrote:
How do you send an SMS with PHP? Right now, I send text messages to
verizon users by just adding @vtext.com to their phone number and
emailing that. Is there something like this that I could do for other
phone companies? Or is there some universal way to send a text message
to any number from PHP?


Feb 27 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by coder_1024 | last post: by
reply views Thread by praba kar | last post: by
10 posts views Thread by Stuart Mueller | last post: by
3 posts views Thread by Robert A. van Ginkel | last post: by
3 posts views Thread by Ant | last post: by
4 posts views Thread by =?Utf-8?B?R3V5IENvaGVu?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.