Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Sirik's avatar
Level 11

Need a stable Mail Client (IMAP)

I tried to work with https://www.php-imap.com but my inbox is to big, and I got timeouts even with pagination or limiting

I need to process millions of emails with attachments a day.

So I need a client who works with chunking.

Any advise for a library or an other solution ?

0 likes
6 replies
Snapey's avatar

If you don't need a mailbox, just need to process the incoming email, then providers like Postmark (and others) can provide an inbound mail service where they will call a webhook on your application and present the email to you as a json object. You then don't need to try and scan a huge mailbox.

Sirik's avatar
Level 11

I need to scan incoming emails but also existing emails, currently there are more than 5 million emails waiting for processing, if u use laravel-imap I get only timeouts even when I limit the result to 10 of chunk the results. I'm working with office365

Please or to participate in this conversation.