Comments (6)
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.
from php-imap-reader.
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.
If possible, write an example of coding with $imap->id()
thanks
from php-imap-reader.
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.
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)
- Method to move mails HOT 1
- No emails triggers error HOT 3
- Problem with get all attachments and display images inside mail HOT 1
- Method to download whole email as .eml HOT 1
- imap_list
- Mark as read issue HOT 1
- Base64 Decode HOT 3
- Create Mailbox? HOT 2
- Plz add imap_expunge to Reader.php HOT 1
- Filter by custom header HOT 3
- Error during retrieve attachment HOT 1
- delete email HOT 2
- Get NewMessages HOT 1
- Issue with PHP function:count() when no value is used with limit()
- Count All Messages in Imap folder HOT 2
- count(): Parameter must be an array or an object that implements Countable HOT 1
- Needs another stable version tag HOT 1
- Emails always marked as read HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-imap-reader.