SERVICE_IMAP
SERVICE_IMAP
Class ImapConnect. Connect with imap servers.
connect(string|array $mailbox, string $username = null, string $password = null, integer $options, integer $n_retries, array $params = array()) : void
The connection to the server
Description of the method imap_open() to look at the link below http://php.net/manual/ru/function.imap-open.php
Use as follows:
connect( null, 'username', 'password' ) or connect([ 'username' => 'Name', 'password' => 'Pass' ])
| string|array | $mailbox | |
| string | $username | |
| string | $password | |
| integer | $options | |
| integer | $n_retries | |
| array | $params |
prepareMailbox(string|array $remote_system_name = null, string $port = null, string $flags = null, string $mailbox_name = null) : void
Prepare Mailbox string
Sets $this->mailbox to this type of {server.imap:431/imap/ssl/novalidate-cert}INBOX
Use as follows:
prepareMailbox( null, $port = 431, null) or prepareMailbox([ 'port' => 431 ])
| string|array | $remote_system_name | |
| string | $port | |
| string | $flags | can use prepareFlags() method but not necessarily |
| string | $mailbox_name |
prepareFlags(string|array $service = null, string $encrypt = null, string $validateCertificates = null, string $secure = null, string $norsh = null, string $readonly = null, string $anonymous = null, string $debug = null) : string|null
Prepare Flags
http://php.net/manual/ru/function.imap-open.php Section - mailbox - Optional flags for names
Use as follows:
prepareFlags( null, null, null, ImapConnect::VALIDATE_CERT, null) or prepareFlags([ 'validateCertificates' => ImapConnect::VALIDATE_CERT ])
| string|array | $service | use appropriate constant like ImapConnect::SERVICE_IMAP |
| string | $encrypt | use appropriate constant |
| string | $validateCertificates | use appropriate constant |
| string | $secure | use appropriate constant |
| string | $norsh | use appropriate constant |
| string | $readonly | use appropriate constant |
| string | $anonymous | use appropriate constant |
| string | $debug | use appropriate constant |