From 0a83c89f9f68393c9efd1b427df37b74854b8bb9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 9 Apr 2014 08:41:57 +0000 Subject: [PATCH] fixed PHP Fatal error: Undefined class constant "SSL_TLS" --- phpgwapi/inc/class.send.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.send.inc.php b/phpgwapi/inc/class.send.inc.php index c92c394de6..3c49012952 100644 --- a/phpgwapi/inc/class.send.inc.php +++ b/phpgwapi/inc/class.send.inc.php @@ -47,13 +47,13 @@ class send extends egw_mailer $this->Port = $account->acc_smtp_port; switch($account->acc_smtp_ssl) { - case self::SSL_TLS: // requires modified PHPMailer, or comment next two lines to use just ssl! + case emailadmin_account::SSL_TLS: // requires modified PHPMailer, or comment next two lines to use just ssl! $this->Host = 'tlsv1://'.$this->Host; break; - case self::SSL_SSL: + case emailadmin_account::SSL_SSL: $this->Host = 'ssl://'.$this->Host; break; - case self::SSL_STARTTLS: // PHPMailer uses 'tls' for STARTTLS, not ssl connection with tls version >= 1 and no sslv2/3 + case emailadmin_account::SSL_STARTTLS: // PHPMailer uses 'tls' for STARTTLS, not ssl connection with tls version >= 1 and no sslv2/3 $this->Host = 'tls://'.$this->Host; } $this->smtpAuth = !empty($account->acc_smtp_username);