real-time IMAP notification of new Emails in php

I’m looking for a way to run a specified code when a new mail receive in my inbox. i found codes to reach inbox and i can read new mails in my php website with imap, but for real-time action i should check mails every 1 second in a loop. i think there should be a better way to do this, than check mail in a loop.
can you help me?

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.