I would like to write a script that can receive e-mail and then do something depending on instructions in that e-mail, but I have no idea where to start with this. Is this possible with PHP?
views:
74answers:
2
+3
A:
There's an old (but good) email on evolt about piping incoming emails to a php script.
http://www.evolt.org/incoming_mail_and_php
If you don't have terminal access, you could instead use the imap/pop functions in php to read a mailbox.
adam
2010-04-15 21:51:57
This is exactly what I'm looking for! Thanks!
DKinzer
2010-04-15 21:56:45
A:
No. Only a mail server can read email. However, you can have the mail server pipe the output to a PHP CLI script.
George Edison
2010-04-15 21:52:30
The -1 wasn't me, but I think you are taking the question a little too literally. You're not a mail server, but you get email too.
adam
2010-04-15 21:53:52
True - but then any (and I mean just about any) language could be used for a mail server. And I don't think that's what @DKinzer wanted.
George Edison
2010-04-15 22:22:23