473,585 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using PHP to send IM or SMS Text

We broadcast email messages with PHP scripts, but sometimes email is not
timely and we would like to send something that could get there faster.

Can anyone tell me about how to send Instant Messages (Y, AOL, MSN,
Trillian, etc.) or SMS from within a script?

Please copy your reply off group to "access (a) NatPresCh .org" - hopefully
I will see your message there sooner. And thanks for any ideas.

~Ray
Jul 17 '05 #1
6 4622
In article <G%UAd.15464$jn .15167@lakeread 06>,
"Ray Paseur" <ra*@earplugsno n-aol.com> wrote:
We broadcast email messages with PHP scripts, but sometimes email is not
timely and we would like to send something that could get there faster.

Can anyone tell me about how to send Instant Messages (Y, AOL, MSN,
Trillian, etc.) or SMS from within a script?

Please copy your reply off group to "access (a) NatPresCh .org" - hopefully
I will see your message there sooner. And thanks for any ideas.

~Ray


Since the IM interfaces aren't standard and they keep changing because
the vendor wants to control the client that can send/receive messages
from them, you're probably limited on what you can do from a php script.
Many cell phone vendors allow sending email messages through their
gateway to cell phones. All I had to do with eBay was give them the
email address for my cell to get SMS notification.

Even if you manage to get the IM network protocol figured out, it could
change at any time and stop working. With multiple vendors doing that
to you, I ask you "do you really want to go there?" Is the PHB that's
asking for this aware of the volatility of these applications? How much
time and money are they willing to spend to implement and maintain this
feature?

I think you can do SMS using the mail() function without a problem.
There's already stuff in CPAN on AIM:

http://search.cpan.org/search?query=...ssage&mode=all

Unless you've built php as a CLI, php applications are tied to a web
page through mod_php. If you write it in perl, it can be run as as CLI
script via cron. If this paragraph doesn't mean anything to you, hire a
consultant.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #2
Michael Vilain <vi****@spamcop .net> wrote:
Unless you've built php as a CLI, php applications are tied to a web
page through mod_php. If you write it in perl, it can be run as as CLI
script via cron. If this paragraph doesn't mean anything to you, hire a
consultant.


Getting perl involed for this reason is silly. Running a PHP script
thru a webserver from cron is a simple as:
0 * * * * lynx -dump http://localhost/path/to/script.php > /dev/null

Jul 17 '05 #3
Hello,

on 12/30/2004 01:19 PM Ray Paseur said the following:
We broadcast email messages with PHP scripts, but sometimes email is not
timely and we would like to send something that could get there faster.
When I need to send urgent messages I scrap the local MTA and inject it
directly in the SMTP server of the recipient. It can't be faster than that.

I use these classes to compose and send urgent messages using the direct
delivery mode of the SMTP class. There is also a wrapper function named
urgent_mail() that emulates the mail function but first attempts to send
the message directly and then fallback to mail() if immediate delivery
is not possible.
http://www.phpclasses.org/mimemessage

http://www.phpclasses.org/smtpclass

Can anyone tell me about how to send Instant Messages (Y, AOL, MSN,
Trillian, etc.) or SMS from within a script?


You may want to take a look here where you may find several solutions
for sending instant messages using different networks:

http://www.phpclasses.org/browse/class/66.html

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #4
On 2004-12-30, Ray Paseur <ra*@earplugsno n-aol.com> wrote:
We broadcast email messages with PHP scripts, but sometimes email is not
timely and we would like to send something that could get there faster.

Can anyone tell me about how to send Instant Messages (Y, AOL, MSN,
Trillian, etc.) or SMS from within a script?


I think you'll get the best result if you write/find yourself something
that implements the jabber protocol. Because then you can use the
transport-plugins to send your messages to other networks (Y!, AIM, ...)

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #5
Daniel Tryba wrote:
Michael Vilain <vi****@spamcop .net> wrote:
Unless you've built php as a CLI, php applications are tied to a web
page through mod_php. If you write it in perl, it can be run as as CLI
script via cron. If this paragraph doesn't mean anything to you, hire a
consultant.

Getting perl involed for this reason is silly. Running a PHP script
thru a webserver from cron is a simple as:
0 * * * * lynx -dump http://localhost/path/to/script.php > /dev/null


or:

wget http://localhost/path/to/script.php
Jul 17 '05 #6
Thanks to all who offered suggestions. This link appears to hold the most
promise:
http://www.phpclasses.org/browse/class/66.html

When I get something working, I will post it.
~Ray

"Manuel Lemos" <ml****@acm.org > wrote in message
news:41******** ******@acm.org. ..
Hello,

on 12/30/2004 01:19 PM Ray Paseur said the following:
We broadcast email messages with PHP scripts, but sometimes email is not
timely and we would like to send something that could get there faster.


When I need to send urgent messages I scrap the local MTA and inject it
directly in the SMTP server of the recipient. It can't be faster than
that.

I use these classes to compose and send urgent messages using the direct
delivery mode of the SMTP class. There is also a wrapper function named
urgent_mail() that emulates the mail function but first attempts to send
the message directly and then fallback to mail() if immediate delivery is
not possible.
http://www.phpclasses.org/mimemessage

http://www.phpclasses.org/smtpclass

Can anyone tell me about how to send Instant Messages (Y, AOL, MSN,
Trillian, etc.) or SMS from within a script?


You may want to take a look here where you may find several solutions for
sending instant messages using different networks:

http://www.phpclasses.org/browse/class/66.html

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3268
by: PeterR | last post by:
I've spent weeks trying to write a function that is simple to use for sending emails with attachments, but I my programming skills are not that advanced. I've noticed a few postings in these newsgroups with the same problem, so I just want to share my solution. I recommend using libmail from...
1
1634
by: Stephen Adam | last post by:
Hi there, I've just started a c# project at work where I cannot use Visual Studio. I am trying to pass variables from one form to another. When I try to create an instance of the sending class in the receiving class I get a "The type or namespace name 'XXXX' could not be found (are you missing a using directive or an assembly reference?)" ...
7
14085
by: Rex Winn | last post by:
I've Googled until my eyes hurt looking for a way to issue Telnet commands from C# and cannot find anything but $300 libraries that encapsulate it for you. I don't want to be able to create a Telnet client. I just need to send a telnet request to a local IP address on a LAN issue a "c" then a "b" and stream back the text for internal use. The...
0
1347
by: desi.american | last post by:
I'm using System.Web.Mail to send an email message from an ASP.NET web page. This is the main section of the code. //************* start code ***************************** string mailHost = (System.Configuration.ConfigurationSettings.AppSettings.GetValues("mailserver")); //Get data from page string toAddress =
0
1390
by: khawar | last post by:
here is my code that i am using to send the post to verisign: using System.Drawing; using System.Data; using System.Data.SqlClient; using System.Data.OleDb; using System; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls;
5
2138
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. --------------------------------------------------------------------------------
3
5319
by: Rob | last post by:
Hi all, I am having trouble converting the code below (found on http://vbnet.mvps.org/index.html?code/core/sendmessage.htm) into a format that will work using vb .NET. Can anyone have a look at it and let me know what I need to change. I have tried changing the "hwnd" type into intptr's but there seem to be other problems too, like it...
6
17159
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically, process and output to the screen in my application when a message arrived. But the problem is how do I read the SMS message immediately when it arrived...
6
5130
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick application working. However, when attempting to implement the solution, the AJAX calls weren't updating the screen like the examples were and...
21
34375
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready...
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.