Re: [PHP] Piping email into a php script

2005-04-04 Thread Philip Hallstrom
$buffer = file_get_contents("php://stdin"); will read the contents of standard input into the string $buffer. -philip On Mon, 4 Apr 2005, Jeff McKeon wrote: Running PHP 4.3.9, apache, mysql, qmail I know it's possible to pipe an incoming mail message to a script in qmial by creating a .qmail file f

[PHP] Piping email into a php script

2005-04-04 Thread Jeff McKeon
Running PHP 4.3.9, apache, mysql, qmail I know it's possible to pipe an incoming mail message to a script in qmial by creating a .qmail file for the user like: |script What I'd like to do is pipe incoming mail for a specific user into a php script that parses it out (using mailparse I imagine) a

Re: [PHP] Piping email

2004-01-04 Thread David T-G
Adrian -- You have started a new thread by taking an existing message and replying to it while merely changing the Subject: line. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a "References:" header that tells all recipients to which postin

[PHP] Piping email

2004-01-03 Thread Adrian Teasdale
Is it possible to pipe email directly to PHP like it's possible to do with perl? I need to do this using Exim which I'm also unfamiliar with so if anyone has done this I'd appreciate knowing how! :) Thanks Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] piping email directly into PHP

2003-06-12 Thread Adrian Teasdale
Thanks Brent, now that's an interesting angle I'd not thought about :) Thanks for this Ade > -Original Message- > From: Brent Baisley [mailto:[EMAIL PROTECTED] > Sent: 12 June 2003 13:30 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP

Re: [PHP] piping email directly into PHP

2003-06-12 Thread Brent Baisley
You may also want to look into dbmail (dbmail.org), which is a mail server that uses Postgres or Mysql as it's repository. I haven't played with it yet, but I would think you would be able to query the database like any other database you create. On Wednesday, June 11, 2003, at 05:31 PM, Adrian

Re: [PHP] piping email directly into PHP

2003-06-11 Thread Robert Cummings
:02 > > To: Adrian Teasdale > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] piping email directly into PHP > > > > > > On Wed, 11 Jun 2003, Adrian Teasdale wrote: > > > > >-Hi there > > >- > > >-We are wanting to create a little

RE: [PHP] piping email directly into PHP

2003-06-11 Thread Adrian Teasdale
Wow, thanks! A nice detailed reply that should keep me busy for a good few hours All the best Ade > -Original Message- > From: John S. Huggins [mailto:[EMAIL PROTECTED] > Sent: 11 June 2003 23:02 > To: Adrian Teasdale > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] pip

Re: [PHP] piping email directly into PHP

2003-06-11 Thread John S. Huggins
On Wed, 11 Jun 2003, Adrian Teasdale wrote: >-Hi there >- >-We are wanting to create a little help/crm tool for internal use. Rather >-than reading (and parsing) in an email from a pop account, is it now >-possible to pipe email in directly to a database via PHP? If so, any >-pointers on how to

Re: [PHP] piping email directly into PHP

2003-06-11 Thread Matt Matijevich
I am no expert in email, but with a little help, I figured out how to use procmail to pipe email into a perl script and work with the data from the email in that script. So I am pretty sure it is possible using php as well. >>> "Adrian Teasdale" <[EMAIL PROTECTED]> 06/11/03 04:31PM >>> Hi there W

[PHP] piping email directly into PHP

2003-06-11 Thread Adrian Teasdale
Hi there We are wanting to create a little help/crm tool for internal use. Rather than reading (and parsing) in an email from a pop account, is it now possible to pipe email in directly to a database via PHP? If so, any pointers on how to do it and anything to watch out for? Thanks in advance