Re: Taking body of an email and storing it in MySQL database

From: Date: Mon, 07 Sep 2009 13:26:08 +0000
Subject: Re: Taking body of an email and storing it in MySQL database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-297756@lists.php.net to get a copy of this message
Richard, Thank you for responding. > Sounds like you may have a MIME (an HTML email or one with attachments > etc) email to decode. No, the mails should be in plain text format. I probably didn't describe my issue properly because I don't understand it fully. If I can assume all the mails I am receiving are in plain text format - which they should be because it is within a controlled environment - can I use PHP to pull out each email from the POP server essentially as a text file? I need to find out the sender and subject line, but other than that, the rest of it (including headers) I just want to store in MySQL. -- Dave M G

« previous php.general (#297756) next »