Sending SMS with PHP

This is a discussion on Sending SMS with PHP within the PHP Language forums, part of the PHP Programming Forums category; How do you send an SMS with PHP? Right now, I send text messages to verizon users by just adding @...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2006
DJ Craig
 
Posts: n/a
Default 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?

Reply With Quote
  #2 (permalink)  
Old 02-20-2006
Nicholas Sherlock
 
Posts: n/a
Default Re: Sending SMS with PHP

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
Reply With Quote
  #3 (permalink)  
Old 02-20-2006
francois@bonzon.com
 
Posts: n/a
Default Re: Sending SMS with PHP

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.

Reply With Quote
  #4 (permalink)  
Old 02-20-2006
DJ Craig
 
Posts: n/a
Default Re: Sending SMS with PHP

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

Reply With Quote
  #5 (permalink)  
Old 02-27-2006
sibob
 
Posts: n/a
Default Re: Sending SMS with PHP


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?


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0