fixed PHP Fatal error: Undefined class constant "SSL_TLS"

This commit is contained in:
Ralf Becker 2014-04-09 08:41:57 +00:00
parent 370dd66938
commit 0a83c89f9f

View File

@ -47,13 +47,13 @@ class send extends egw_mailer
$this->Port = $account->acc_smtp_port; $this->Port = $account->acc_smtp_port;
switch($account->acc_smtp_ssl) 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; $this->Host = 'tlsv1://'.$this->Host;
break; break;
case self::SSL_SSL: case emailadmin_account::SSL_SSL:
$this->Host = 'ssl://'.$this->Host; $this->Host = 'ssl://'.$this->Host;
break; 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->Host = 'tls://'.$this->Host;
} }
$this->smtpAuth = !empty($account->acc_smtp_username); $this->smtpAuth = !empty($account->acc_smtp_username);