REFACTOR: improved sample

This commit is contained in:
Synox 2016-12-22 21:34:43 +01:00
parent ecf2297a31
commit 2859a7abb5

View file

@ -12,9 +12,8 @@ error_reporting(E_ALL);
// see https://en.wikipedia.org/wiki/Cross-origin_resource_sharing // see https://en.wikipedia.org/wiki/Cross-origin_resource_sharing
// header("Access-Control-Allow-Origin: *"); // header("Access-Control-Allow-Origin: *");
// setup imap connection // Change IMAP settings (check SSL flags on http://php.net/manual/en/function.imap-open.php)
$config['imap']['host'] = "localhost"; $config['imap']['url'] = '{example.com/imap/ssl}INBOX';
$config['imap']['url'] = '{' . $config['imap']['host'] . '/imap/ssl}INBOX';
$config['imap']['username'] = "test"; $config['imap']['username'] = "test";
$config['imap']['password'] = "test"; $config['imap']['password'] = "test";