hello everybody,
Anybody helps to solve this problem.
I have to pipe all incomming mails to PHP script.
For this I tried variour options.
1) I make .forword file and write as:- "|/our/script.php"
This file installed on domains home directory.
This is not working so I tried another.
2) I make .qmail file and and write as:- |/our/script.php
but any of this is not working. All the mails directly goes to mailbox
and can not pipe to script.
Is their any other procedure or anything is missing from my side to rectify
this problem.
I have following configuration.
==============================================
Path to send mail = "/usr/sbin/sendmail"
Path to Php Cgi = "#!/usr/bin/php"
==============================================
Please help me.
satish
How to pipe all incomming mails to php script ?
Moderator: General Moderators
- greenhorn666
- Forum Commoner
- Posts: 87
- Joined: Thu Aug 14, 2003 7:14 am
- Location: Brussels, Belgium
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
DaMastaBugz
- Forum Newbie
- Posts: 2
- Joined: Tue Aug 19, 2003 9:21 am
- Location: Sao Paulo
I had a similar situation and I resolved it by creating a script I ran in PHP that would fetch the e-mails automatically.
The Imap is pretty straight forward to understad in PHP and you should have no problems with that, for the automatic script running, add either wget or lynx to your crontab.
It worked like a charm. And the load on the server was greatly reduced.
If you have a situation such as we did (where we had to process only certain e-mails) then this is the tool for you.
The Imap is pretty straight forward to understad in PHP and you should have no problems with that, for the automatic script running, add either wget or lynx to your crontab.
It worked like a charm. And the load on the server was greatly reduced.
If you have a situation such as we did (where we had to process only certain e-mails) then this is the tool for you.