RE: [PHP] Add content thru e-mail

From: Date: Mon, 04 Nov 2002 13:32:43 +0000
Subject: RE: [PHP] Add content thru e-mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122668@lists.php.net to get a copy of this message
/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 <chris@eleet.com.au>: > > 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: php-general@lists.php.net > > 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) > > tim@hitcho.com.au > > > > > > 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: operations@cdmsports.com phone: 314.991.1511 x 6505 ----------------------------------------------- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ]

« previous php.general (#122668) next »