Re: Automatic incoming mail notification

From: Date: Fri, 02 Feb 2001 05:33:30 +0000
Subject: Re: Automatic incoming mail notification
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-37791@lists.php.net to get a copy of this message
On Fri, 2 Feb 2001 15:53, Josh G wrote: > Depends on your mailserver. Most mail servers can redirect incoming > mail to a program, I know sendmail can. In your case just make the first > line of your script #!/path/to/php/bin/php and that should do the trick. > > Sorry I don't know how to make sendmail do it, only that you can. > Check the man pages tho, shouldn't be too hard. > > Gfunk - http://www.gfunk007.com/ > > I sense much beer in you. Beer leads to intoxication, intoxication to > hangovers, and hangovers to... suffering. > > > ----- Original Message ----- > From: "Ankur Verma" <ankurv@vsnl.com> > To: "PHP User Group" <php-general@lists.php.net> > Sent: Saturday, February 03, 2001 5:51 AM > Subject: [PHP] Automatic incoming mail notification > > > Hello All! > > Sorry for this off-topic posting but this is extremely important for me. > > I need a php script to be called each time my email mailbox recieves a > new email message. One way is to have a cron job running and get the php > script to check my mailbox every few minutes to see if there are any new > emails and do the needfull if there is one. > > But I guess that there should be a way for the mail server to initiate > some action based on the reciept of a new mail in a particular mailbox. I > don't think trhat sites like Yahoo and Hotmail use cron jobs to sense new > emails in a user's mailbox. Another possibility might be that the > checking is being done every few minutes by the client application. > > if anyone has any idea about the methodology being followed by Yahoo and > Hotmail, please be kind enough to pass it on. If anyone is aware of a > mail server otr a mailserver addin which would enable automatic > notification and initiaition of script on the reciept of a new email, > please pass the info on. > > I am on Redhat 6.2 with cyrus as my mail server and am using PHP4. > > Thanks in advance > > Ankur Verma > HCL Technologies > A1CD, Sector 16, > Noida There is a nice program called procmail, which may already be on your system. Alternatively, under sendmail you can use entries in /etc/aliases to play around with redirecting emails. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#37791) next »