/etc/aliases
foo: "|/path/to/script.php"
script.php
<?
$fp = fopen("php://stdin","r") ;
$buffer = "" ;
while (!feof($fp)) { $buffer .= fgetc($fp); }
$email_parts = explode("\n\n",preg_replace("/\r/","",$buffer));
$headers = $email_parts[0];
$body = $email_parts[1];
/* ...etc... */
?>
Quoting Chris Kay <[EMAIL PROTECTED]>:
>
> Could you not put a .forward to a php script?
>
> Correct me if I am wrong or even point me in the right direction
> Cause I am thinking of doing this soon.
>
> Regards
> Chris Kay
>
> > -----Original Message-----
> > From: Timothy Hitchens (HiTCHO) [mailto:phplists@;hitcho.com.au]
> > Sent: Monday, 4 November 2002 12:59 PM
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Add content thru e-mail
> >
> >
> > The simplest way to do this to setup a pop3 account and have
> > a php script check this account at intervals via cron.
> >
> > Or you could write a pipe script via aliases.
> >
> >
> > Timothy Hitchens (HiTCHO)
> > [EMAIL PROTECTED]
> >
> >
> > On Sun, 3 Nov 2002, Rodrigo de Oliveira Costa wrote:
> >
> > > Hi people, i'd like to know if there is a way to add content to a
> > > database thru sending an e-mail, and if there is how it
> > would be done.
> > > Thanks, Rodrigo
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=======================================
Michael Geier
CDM Sports, Inc. Systems Administration
email: [EMAIL PROTECTED]
phone: 314.991.1511 x 6505
-----------------------------------------------
This email sent using CDM Sports Webmail v3.1
[ http://webmail.cdmsports.com ]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php