Re: creating a mailbot in php

From: Date: Wed, 17 Mar 2004 01:54:49 +0000
Subject: Re: creating a mailbot in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180629@lists.php.net to get a copy of this message
On Wednesday 17 March 2004 07:54, Leonard B Burton wrote: > Would someone be so nice to send me the code to just get it to do something > (like update a counter or anything) simple that I will be able to tell if > the email is getting to the script or not? > > My host has an option that allows you to easily make an alias [by way of an > html form] that will send emails to certain files and I can not tell if it > is not working or if my script is not working. I have tried to read around > and could not figure it out. I wish I could RTFM but I cant find one. The > few pages I found on the net do not give a good enough explaination. Mail is usually passed to your program via STDIN, so: $STDIN = fopen("php://stdin", "r"); $doo = fread ($STDIN, 1000000); fclose($STDIN); echo $doo; -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* BAD CRAZINESS, MAN!!! */

« previous php.general (#180629) next »