Push email support in php 5.3

Hi All,

Is push email is supported in php 5.3 ? If anyone knows please reply and also give an example.

Thanks in advance.

What are you trying to do? Send or receive?

For sending, it’s the same as sending a normal email as it’s the recipient’s mailserver that deals with pushing the mail to the client.

If you’re trying to connect to a push email server with PHP you might struggle. It’s possible but probably not for a webserver, you’ll need to create a socket connection to the imap server and keep the script running so that emails can be pushed to it.

Hi TomB,

Thank you very much for your reply.
I am trying to do both the sending and receiving emails through push email. Do you have any previous experience in this ? If yes can you please give me any examples ?

I don’t, but it looks like there is an extension which would let you connect to the server easily: http://www.php.net/manual/en/book.imap.php