PHP Classes

Saving body and attachments to database

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Saving body and attachments to database  >  (Un) Subscribe thread alerts  
Subject:Saving body and attachments to database
Summary:How can pieces be saved to a database, rather than a file
Messages:12
Author:f
Date:2008-10-30 18:57:40
Update:2008-11-01 18:17:31
 
  1 - 10   11 - 12  

  11. Re: Saving body and attachments to database   Reply   Report abuse  
Picture of f f - 2008-11-01 17:56:21 - In reply to message 10 from Manuel Lemos
Spot on! Well-noticed!

One last thing... This doesn't have much to do with PHP, but I hope you can answer based on your experience parsing emails...

Bearing in mind that emails can come in many different formats, what is the logic that should be applied to identify and grab the text-version (if it exists), the html version (if it exists) and any attachemtns (if they exist)?

Many thanks once again.

  12. Re: Saving body and attachments to database   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-11-01 18:17:32 - In reply to message 11 from f
You can use the Analyze function and it returns the text and HTML versions separated in an easy to process for.

 
  1 - 10   11 - 12