[+] BO : added ssl option for imap sync in SAV

This commit is contained in:
vAugagneur
2011-10-20 14:55:27 +00:00
parent b436df3a3e
commit e439991322
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -762,7 +762,7 @@ if (Tools::isSubmit('syncImapMail'))
if (!function_exists('imap_open'))
die('{"hasError" : true, "errors" : ["imap is not installed on this server"]}');
$mbox = @imap_open('{'.$url.':'.$port.'}', $user, $password);
$mbox = @imap_open('{'.$url.':'.$port.(Configuration::get('PS_SAV_IMAP_SSL') ? '/ssl' : '').'}', $user, $password);
//checks if there is no error when connecting imap server
$errors = imap_errors();