Read Mail

Posted on 2005-04-28
Last Modified: 2006-11-18

i have been using IMAP, POP3 functions in PHP, MySQL, LINUX OS (like imap_open, imap_list etc)

how to read a new mail (body, attachments) from the INBOX which can allow to read/parse the attachment in the mail to store in the database.

for example , from this email , if any new mail arrived, i need to read the mail body, attachments and store it to database........

Question by:Loganathan Natarajan
    1 Comment
    LVL 4

    Accepted Solution

    Hi there, just had a quick look around EE and found this post:

    Might be worth you taking a look, basically it uses the IMAP functions to retrieve the body of the message which you should then be able to parse, I've never tried this so I'm unsure as to whether this include attatchments.

    Also this post talks about retrieving attatchments from emails using the phpmine class etc, sounds like it most definately is worth a read.

    Hope this has helped some, cheers


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now