473,385 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1973
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: coder_1024 | last post by:
I'm trying to send a packet of binary data to a UDP server. If I send a text string, it works fine. If I attempt to send binary data, it sends a UDP packet with 0 bytes of data (just the...
0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
3
by: Robert A. van Ginkel | last post by:
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data...
4
by: yaron | last post by:
Hi, I have a problem when sending data over TCP socket from c# client to java server. the connection established ok, but i can't send data from c# client to java server. it's work ok with...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
0
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
4
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.