PHP Classes

What is the best PHP display email with images class?: IMAP function to find an inline email images

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP display email wi...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP display email with images class?


Picture of asad ali by asad ali - 7 years ago (2015-12-10)

IMAP function to find an inline email images

This request is clear and relevant.
This request is not clear or is not relevant.


I need to get emails with inline images attached to the message and display them.

  • 1 Clarification request
  • 1. Picture of Unique Divya by Unique Divya - 4 years ago (2019-04-19) Reply

    how to get

    Ask clarification

    1 Recommendation

    PHP MIME Email Message Parser: Decode MIME e-mail messages

    This recommendation solves the problem.
    This recommendation does not solve the problem.


    Picture of Manuel Lemos by Manuel Lemos package author package author Reputation 23115 - 7 years ago (2015-12-12) Comment

    This class can parse the email messages that you pass to it complete with headers and body and extracts the message structure.

    If there are any inline images in HTML parts the IMG tag would have an URL starting with cid: followed by the ID of the part of the image attachment.

    So using this class you just need to process the message structure array to find the inline image parts and then replace cid:image-id in the HTML part by the URL of a script that would get the image data, or use data: URLs to insert the image data in the HTML.

    If you need help regarding this class, just post a request in its support forum.

    Recommend package