faqts : Computers : Programming : Languages : PHP : Common Problems : Tips and Tricks

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 52 people (38%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

How can I write a script that will read a mail message?
How can I invoke a script when an email is received?

Aug 10th, 1999 23:08
Nathan Wallace, Chris Adams


You can set a .forward or a sendmail alias to execute a script (Use
"|/path/to/my/script.pl" instead of an address). You can either write a
script to use the CGI version of PHP or use something like Perl to
insert it into the same database (which is probably more portable).