nahid / imapx

imapx is php library for laravel 5. Its retrieve all emails from server via imap or pop
MIT License
11 stars 8 forks source link

Embedded images #6

Open gusilveiramp opened 8 years ago

gusilveiramp commented 8 years ago

Hello Friend,

Congratulations for the work. I'm using on a project. I have a question, see if you can help me: I can not open e-mails with embedded images. E-mails with embedded images are displayed the following to me: img

I know this is base64_encode, but even if I use the base64_decode function, they continue to be displayed as follows: img2

You know how it could be done?

nahid commented 8 years ago

Is its an attachments file/s?

gusilveiramp commented 8 years ago

No. Only embedded images (inserted in the email body). Whenever there is an image embedded in the email body, the message is coded the way I showed you.

If the email is a common html email, open normally, for example, google advices, social media advices, etc. The problem is when I insert the image directly in the email body. If I insert an image by embedding images gmail tool, hotmail or any other e-mail tool, it shows the encrypted email.

step-2 step-3 step-4 step-7 step-5 step-6

nahid commented 8 years ago

Here is my output with embedded image. Which method do you used for fetching email body?

imap

gusilveiramp commented 8 years ago

Yes, with pinterest works perfectly here too. I update my last message. Please, see the image that I upload. The problem is when you follow exactly the steps on my last message.

gusilveiramp commented 8 years ago

step-8

This is a default html email I received from my Google+ network. It opens normally. The problem is when I create an email and manually insert the image in the email body using the tool to embed images. Exactly as I showed in the previous message.

gusilveiramp commented 8 years ago

Hey friend, here a similar problem in Stackoverflow: http://stackoverflow.com/questions/17106488/embedded-images-causing-problems-with-imap-fetchbody

I'm working on it. Any news, I'll let you know.

nahid commented 8 years ago

Thank you :) . If you find any solution please let me know or make a pull request