Re: Can PHP route Sendmail to a MYSQL DB ?
| From: | Richard Lynch | Date: | Mon, 08 May 2006 18:02:50 +0000 |
| Subject: | Re: Can PHP route Sendmail to a MYSQL DB ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235741@lists.php.net to get a copy of this message | ||
On Mon, May 8, 2006 12:45 pm, Graham Anderson wrote:
> I need to specific emails to insert directly into a mysql database
> The server uses sendmail/php/mysql
>
> Essentially, all emails sent TO and FROM 'salesrep@company.com' are
> emailed normally and, then, inserted into the company_email database.
> Is there something out there that already does this...like a php
> class with some sendmail scripts ?
>
> many thanks as I wanted to see if the wheel had already been invented
I think the examples in "man smrsh" will get you where you want to be.
You basically configure sendmail to re-direct mail to a shell script
-- which can of course be in PHP.
I know for sure you can do this for incoming email, as I managed to
stumble through it. Once. (And I do mean stumble.)
I'm guessing that outgoing email can be done the same way, more or less.
--
Like Music?
http://l-i-e.com/artists.htm