Page 1 of 1

Email Piping Documentation

Posted: Sat Mar 11, 2006 3:26 am
by NightFox
Hello, I'm looking for any kind of documentation on how Email Piping via PHP works.
What functions, how to best utilize said functions, etc. If you know of any or have
any documentation on this, I would be eternally greatful. I'm looking for PHP 4.1.X
compatibility.

An example of what I want to do would be like what a quality ticket support system
can do. User A emails support@email.com with their query, the server pipes the
email to route.php. route.php breaks down the email/headers and adds it to the
database accordingly. The user can now see their email on the web interface. I think
you can get the idea. :)

Your help is greatly appreciated.
Thank you!

Nathan J. Brauer
NathanBrauer.com
PHP-Fusion.co.uk

Posted: Sat Mar 11, 2006 4:56 am
by Chris Corbyn
You want to pipe mail through PHP scripts? It's fairly easy with exim since there's a pipe transport section in the exim.conf file or just can just have your system filter pass mail to a PHP script (command line of course).

There's loads of documentation over at the exim site

;)

Posted: Sat Mar 11, 2006 10:04 am
by NightFox
and the exim site would be...?
lol sorry I know PHP, but I'm not too aware of it's foundations yet.

Posted: Sat Mar 11, 2006 1:30 pm
by Chris Corbyn
NightFox wrote:and the exim site would be...?
lol sorry I know PHP, but I'm not too aware of it's foundations yet.
exim isn't related to PHP. It's a Mail Transfer Agent that runs on linux systems. You won't pipe mail through PHP without a MTA since the MTA is the service to the mail protocol ports.

http://www.exim.org/

Posted: Sat Mar 11, 2006 4:04 pm
by NightFox
Oh, well my server uses cPanel with Piping enabled (they use the word "filter" but I think it's the same thing because in their example, you can "filter" email matching XX variables to a perl document). So, I need to know if PHP can handle piped emails? And how PHP handles said mail.