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

incoming mail shall execute php-script

Hi there,

the task:
Any mail that drops into a specified mailbox shall cause a (php-)script to
immediately react with some action.
Quite a common task, isn't it?

I could use e.g. cron to let a script frequently look for new mail.
But mail drops in only once every few days, so I don't want to execute that
look-for-new-mail-script every 3 minutes. But IF mail drops in, the
reaction should be as quick as possible.

Is there a way to watch the mailbox and run the script when the mb changes?
Or could the mailserver be told to run that script when such mail drops in?

It's a Redhat Linus. Probably running in a more or less "standard"
configuaration (what ever that is...)

I don't know which mailserver is running there, but when I connect via SMTP
the server says:
ESMTP Sendmail 8.12.10/8.11.6; Fri, 30 Jul 2004 15:30:22 +0200

And on connection via POP3 it says:
+OK POP3 v2000.70rh server ready

I don't have root access and cannot access the relevant config files. But I
guess I could convince the admin to set up sth. if I tell him exactly what
I want...

Thanks a lot for any idea!
Frank

Jul 17 '05 #1
1 2290
In comp.lang.php Frank R. Suchy <us****@rem.ove-sp.am.ardik.net> wrote:

Followup-to ignored.
the task:
Any mail that drops into a specified mailbox shall cause a (php-)script to
immediately react with some action.
Quite a common task, isn't it?


It's quite common... it's called procmail (which is most likely
installed by default on RH), see the NOTES section of "man procmail" for
a quick example.

--

Daniel Tryba

Jul 17 '05 #2

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

Similar topics

5
by: simonc | last post by:
I've been programming in assembler and C/C++ for a number of years, but I'm only just starting down the road of PHP & MYSQL. I have a couple of questions: (1) Before I start writing my own...
2
by: Sam Hou | last post by:
Dear all, I don't know where my problem is. Hopefully someone can give me some hint to explore the problem more. I am running Apache 2.0.48 wih PHP 4.3.4. The apache is running as nobody. I...
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...
2
by: Mike Verdone | last post by:
Hello all, I'm trying to implement a PHP program that can handle streaming HTTP data through Apache. I need to somehow get access to the incoming data of the HTTP request as it arrives (i.e. I...
0
by: Ask Me | last post by:
Hi, I am using the mail function and specify a remote SMTP server. After setting the variables, the command is issued as: mail($receiver1, $subject, $mailtxt, $from); The relevant section...
5
by: Rick | last post by:
Is there a way to use these two types of coding in the Mail function of PHP? Thanks for any help you can give it is most appreciated!! money_format('%i', $total) and print " <tr...
10
by: Nancy Drew | last post by:
hi all i want to build a trouble ticket system. i'd like to have a component written in vbscript watch a specific mail folder for income email (something like 'troubletickets@acme.com') the...
13
Nert
by: Nert | last post by:
hello every one, i need help.. how can i use the mail() funtion in php? when ever i execute the mail function i continuesly receive this error message: what do i need to do in order for me...
5
by: Jens | last post by:
Hello, I have been looking for some C-code which listens on a user-defined port for incoming data traffic. When data is received, the data is written to a file. I found some C-code (server)...
5
by: sriram | last post by:
Dear All, In my project users have to create their own email id in my website, in my server package we can create unlimited mail ids. Now the problem is how to create an email id in the server...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...

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.