imap_open

imap_open -- Open an IMAP stream to a mailbox

Description

resource imap_open ( string mailbox, string username, string password [, int options])






To connect to a POP3 server on port 110 on the local server, use:



To connect to an SSL IMAP or POP3 server, add /ssl after the protocol specification:



To connect to an SSL IMAP or POP3 server with a self-signed certificate, add /ssl/novalidate-cert after the protocol specification:



To connect to an NNTP server on port 119 on the local server, use:



To connect to a remote server replace "localhost" with the name or the IP address of the server you want to connect to.

Exemplo 1 . imap_open( ) example