Is that possible ?
I need that Sales Department users send every kind of documentation they have about quotations attached in an email.
I need to save the body of each email in a DB and have its attachments downloaded to a particular location.
Leo - 2013-08-14 14:00:31 - In reply to message 2 from Manuel Lemos
First thank you very much for this class.
I tried it in combination with your mime parser class and it decodes the email message very well.
The first class / code I found that can decode 'multipart/mixed' emails.
But the attachments, and inline images, that are saved to the server are not decoded correctly, I think.
The images are not fully saved or malformed.
What can I do to make the decoding of the attachments correctly ?
Do I have to select the encoding type of the attachments somewhere?
Leo - 2013-08-14 14:48:44 - In reply to message 4 from Manuel Lemos
Wooah what a fast reply !
I'm using the brows_mailbox.php file as base,
and changed the $parameters array so it contains a filepath in 'SaveBody' and 'SkipBody' is '0'.
All attachments, images and pdf files, the plain bodymessage and html bodymessage are all saved to the 'SaveBody' directory.
But the images are not decoded properly, it's impossible to see what should be displayed in the images.
The html and plain bodymessage are decoded very well, even the correct character encoding.
If encoding should be done automatically, is something wrong with the connection to the server?
Or are not all different types of encoding supported?
What can I do to pinpoint 'the problem' ?
Leo - 2013-08-21 07:23:32 - In reply to message 6 from Manuel Lemos
I've made an example mail with embedded images and attachments, images and attachments consists of sample images from Windows.
Here is the download link to "test email subject" email (via WeTransfer): we.tl/hUo2LIyRX9
Hopefully you can test if you successfully can import the message with your "browse_mailbox" script.
When I import the testmail, some embedded images are 'visible' but corrupt, most can't even be opened.