make sure there is no whitespace leading or trailling the host string, when attempting to send

This commit is contained in:
Klaus Leithoff 2011-07-21 12:11:36 +00:00
parent 769e60d51f
commit f6d7c5a2f2

View File

@ -102,6 +102,7 @@ class egw_mailer extends PHPMailer
$hosts = explode(';',$this->Host);
foreach ($hosts as $k => &$host)
{
$host = trim($host); // make sure there is no whitespace leading or trailling the host string
if (in_array($port,array(465,587)) && strpos($host,'://')===false)
{
//$host = ($port==587?'tls://':'ssl://').trim($host);