Re: email to db
| From: | chris smith | Date: | Sat, 25 Feb 2006 05:55:13 +0000 |
| Subject: | Re: email to db | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231051@lists.php.net to get a copy of this message | ||
On 2/25/06, Mark <neretlis@westnet.com.au> wrote:
> Does anyone know if its possible or how difficult it would be to have a user
> send an email from outlook express to a websites mysql database and update
> records.
You could write a script to parse the email and do the update. It
would come in on 'stdin'.
See http://www.php.net/readline or http://www.php.net/fopen (search
for 'php://stdin').
Alternatively, you could write a script to connect to a mailbox and do
something, see http://www.php.net/imap .
Depends on what you are trying to do really :)