Coder Social home page Coder Social logo

exampel about php-imap-reader HOT 6 CLOSED

benhall14 avatar benhall14 commented on July 24, 2024
exampel

from php-imap-reader.

Comments (6)

benhall14 avatar benhall14 commented on July 24, 2024

I've tested your code on PHP 7.4 and it works as expected?

A few things to check:
-- Are you defining the IMAP_MAILBOX, IMAP_USERNAME, IMAP_PASSWORD, and ATTACHMENT_PATH?
-- Are you using the correct id? This is the message sequence number as opposed to the message UID. If you use the UID, it won't return the correct message.
-- Are any error messages showing?

from php-imap-reader.

qoosoft avatar qoosoft commented on July 24, 2024

from php-imap-reader.

benhall14 avatar benhall14 commented on July 24, 2024

I think the issue is down to the wrong ID. On individual emails, the ->id() return the UID, but when you're setting up using the id(x)->get(), it's expecting the message stream number NOT the UID.

I'm guessing that you're using the UID in the id(x)->get() call which isn't returning the correct email as it's not matching your id.

I'm looking into updating a few things to make this clearer and providing a workable solution, but I don't have an ETA on when it will be updated yet.

from php-imap-reader.

qoosoft avatar qoosoft commented on July 24, 2024

If possible, write an example of coding with $imap->id()
thanks

from php-imap-reader.

qoosoft avatar qoosoft commented on July 24, 2024

i checked and find problem in ID ;
showin ID in get(); working for delete & unseen &....
But not working for specific getEmail()

from php-imap-reader.

benhall14 avatar benhall14 commented on July 24, 2024

The latest version (1.1) uses a clearer solution with the email ID.
You can use the id(x)->get() as per your original message and the results should now return as expected.

from php-imap-reader.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.