Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
08-22-2006, 10:32 AM #1
Email auto-script (not auto-responder)?
I would like to implement an email "auto-script" mechanism (as opposed to an auto-responder).
For example, consider the following events:
1) The code on my webserver sends an automatic email to a subscribed member of my website. (I know how to do this)
2) The recipient responds with a simple command in the subject field (e.g. "YES" or "NO").
3) I want a mechanism that can execute the appropriate script on the webserver (e.g. YES.php or NO.php) depending on the email response from the member.
Does anyone know how I can do this? (point 3 I mean). Any links to tutorials/articles gratefully received.
Mike.Die Welt ist ein Irrenhaus und hier ist die Zentrale!
08-23-2006, 12:08 PM #2
- Join Date
- Jun 2002
- London, UK
- Thanked 110 Times in 109 Posts
The only way I can think of to do this is by hooking up SQL Server to an Exchange mailbox. Which is about as difficult, and as much fun, as trying to stab yourself in the eye with both hands tied behind your back.
If you have a SQL Server, and an Exchange mailbox that you can give it to use, then it will do what you want to: you can automatically read and process emails sent to that mailbox. Otherwise, I've no idea. Sorry.
08-23-2006, 04:51 PM #3
Thanks. I do have both an SQL server and an Exchange mailbox (well I can set up the mailbox). I'll give it a crack ...Die Welt ist ein Irrenhaus und hier ist die Zentrale!
08-30-2006, 08:24 PM #4
I can do it with the PHP IMAP functions and a cron job - its as simple as that!
The devil's not in the doing, it's in the finding out how to do it ...Die Welt ist ein Irrenhaus und hier ist die Zentrale!