Paul,

Thank you very much for responding.


> I'm not sure why you're attempting to do the above. According to the
> documentation, you should simply be able to do
> ...
>     $pop3->save2mysql(a bunch of parameters);

I'm not sure the parameters on the save2mysql() function give me the
flexibility I need. I have to save to particular tables and change other
fields in the database, determined by user data in the database and the
from and subject field in the email.

The save2mysql class seems to assume a certain database structure.
Although, again, I could be wrong about that because documentation is
lacking.

> However, you could set up a loop
> like this:
> 
> for ($j = 0; $j < count($msg); $j++) {
>     if (strpos($msg[$i], 'Subject: ') == 0)
>         // got the subject line
>     if (strpos($msg[$i], 'From: ') == 0)
>         // got the From: address line
> }
> 
> Parsing the subject line and From: address is up to you. But there are
> plenty of PHP functions to search and parse strings.

Thanks very much for the code you provided. I think that should be
enough of a boost forward to get me to a new stage, and hopefully even
take me to the end of this current problem.

I'll see what I can do with it and then hopefully report back success.

-- 
Dave M G

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to