mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +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
@ -566,8 +566,16 @@ class PHPMailer
|
|||||||
// Retry while there is no connection
|
// Retry while there is no connection
|
||||||
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