Sending SMS with PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
How do you send an SMS with PHP?  Right now, I send text messages to
verizon users by just adding 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?

Re: Sending SMS with PHP

DJ Craig wrote:
Quoted text here. Click to load it

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

Nicholas Sherlock

Re: Sending SMS with PHP

There exists other gateways as well. 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:

Then, sending an SMS becomes as easy as:

$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.

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:

Re: Sending SMS with PHP

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

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:

DJ Craig wrote:
Quoted text here. Click to load it

Site Timeline