mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fixed PHP Fatal error: Undefined class constant "SSL_TLS"
This commit is contained in:
parent
370dd66938
commit
0a83c89f9f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user