mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
-patch by Jon Crawford to enable ssl connections for smtp
(phpgwapi/inc/class.phpmailer.inc.php ) example: hostname: ssl://smtp.servername.country port: 465
This commit is contained in:
parent
20fe4703ab
commit
b0fe8d229e
@ -567,7 +567,15 @@ class PHPMailer
|
|||||||
while($index < count($hosts) && $connection == false)
|
while($index < count($hosts) && $connection == false)
|
||||||
{
|
{
|
||||||
if(strpos($hosts[$index], ":") !== false)
|
if(strpos($hosts[$index], ":") !== false)
|
||||||
list($host, $port) = explode(":", $hosts[$index]);
|
{
|
||||||
|
$hostA = explode(":", $hosts[$index]);
|
||||||
|
if (is_numeric(end($hostA))) {
|
||||||
|
$port = array_pop($hostA);
|
||||||
|
} else {
|
||||||
|
$port = $this->Port;
|
||||||
|
$host = implode(':', $hostA);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$host = $hosts[$index];
|
$host = $hosts[$index];
|
||||||
|
Loading…
Reference in New Issue
Block a user