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 @...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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? |