473,888 Members | 1,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2306
In comp.lang.php Frank R. Suchy <us****@rem.o ve-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
3136
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 code, to learn from, and also avoid re-inventing the wheel, does anyone know of any existing source that implements a (basic or complex) play-by-email system using PHP and maybe MYSQL?
2
5640
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 want to use the mail() to send out the email from a web page but it can't work. The web server is on the red hat linux 9.0 with rpm sendmail-8.12.8-9.90 and sendmail-cf. In the begining, I got the error message, 'SYSERR(nobody) can not write...
7
3281
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 http://lwest.free.fr/doc/php/lib/index.php3?page=mail&lang=en it has made my university project much simplier now! :-)
2
4898
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 don't want to access the FILE array). Is this possible with mod_php? I think that, in general, it should be possible as I think mod_python can do it.
0
4326
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 of the php.ini file is:
5
535
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 class=orderpage> \n"; print " <td align=center>$CSQTY</td>\n";
10
4215
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 system should write the sender's email address, time received, and message body to sql server, return a new trouble ticket, etc. anybody know how to set this kind of thing up? tks
13
21352
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 to connect with my localhost mailserver? can anyone help me with this? thanks in advance..(^_^)
5
2642
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) that almost does the job. It listens on a user-defined port and responds to incoming data by writing how many times somebody has tried to connect to the server.
5
1746
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 using PHP code, Plesk was developed in php and they can create email ids, the same thing i want to do with my code. My server is in Linux host
0
9800
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11182
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10778
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10886
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10439
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7148
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4642
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
2
4245
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3252
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.