Re: Save email as .eml file
| From: | bkozora | Date: | Fri, 20 Jul 2007 19:12:55 +0000 |
| Subject: | Re: Save email as .eml file | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259226@lists.php.net to get a copy of this message | ||
I think I found a solution. Must admit I feel pretty down for spending so
much time on this when the solution was so simple, but I couldn't find too
much info on PHP's imap functions. Hopefully this will be indexed and help
developers in the future.
PHP has a function that saves the message in a valid RFC1892 multipart
report format:
$res = imap_savebody($imap, "../eml/test.eml", 2);
Thank you all for your help!
--
View this message in context: http://www.nabble.com/Save-email-as-.eml-file-tf4103444.html#a11714301
Sent from the PHP - General mailing list archive at Nabble.com.