Skip to content

Commit 106b07a

Browse files
committed
[ImapDriver] Fixed non-ssl connection (Closes #6)
1 parent d1fc23b commit 106b07a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MailLibrary/Drivers/ImapDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ImapDriver implements IDriver
6161

6262
public function __construct($username, $password, $host, $port = 993, $ssl = TRUE)
6363
{
64-
$ssl = $ssl ? '/ssl' : '';
64+
$ssl = $ssl ? '/ssl' : '/novalidate-cert';
6565
$this->server = '{'.$host.':'.$port.'/imap'.$ssl.'}';
6666
$this->username = $username;
6767
$this->password = $password;
@@ -454,4 +454,4 @@ protected function buildIdList(array $ids)
454454
sort($ids);
455455
return implode(',', $ids);
456456
}
457-
}
457+
}

0 commit comments

Comments
 (0)