MLUG: [MLUG] How do I get a PHP script to listen for incoming email
[MLUG] How do I get a PHP script to listen for incoming email
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I use smarterlinux.com as my web hosting service to host my PHP scripts.  
The host is great, but they can't offer much help on how to program your 
scripts.  I've found that the PHP mail() function works great to send out an 
email.  Now I want to do the reverse.

I would like to put together a PHP script that you can send email to and 
have it be processed automatically--like most listprocs where you can send 
an email to subscribe, unsubscribe, or post to a list.

The best idea I can come up with so far is to set up a cron job that 
periodically logs into a POP account and downloads the mail.  Is there any 
way I can trigger execution of the script when mail arrives in the box 
rather than constantly poll for mail?

I would think this would be a common scripting task since most listprocs I 
know process subscribe, unsubscribe, posting, and bouncing messages 
automatically.  Unfortunately, I have seached various scripting sites like 
Hotscripts but have yet to come up with source code for a PHP script that 
knows how to listen for incoming mail.

Can other scripting languages know how to do this?

Any ideas?

Thanks,

Bruce

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members