473,382 Members | 1,545 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,382 software developers and data experts.

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 4609
In article <G%UAd.15464$jn.15167@lakeread06>,
"Ray Paseur" <ra*@earplugsnon-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*@earplugsnon-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
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...
1
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...
7
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...
0
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 =...
0
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;...
5
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
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...
6
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,...
6
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...
21
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...
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$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.