diff options
Diffstat (limited to 'Postman/PostmanOptions.php')
-rw-r--r-- | Postman/PostmanOptions.php | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php index 3357682..240b1aa 100644 --- a/Postman/PostmanOptions.php +++ b/Postman/PostmanOptions.php @@ -264,21 +264,11 @@ if ( ! class_exists( 'PostmanOptions' ) ) { return $this->options [ PostmanOptions::AUTHENTICATION_TYPE ]; } } public function getEncryptionType() { - $port = $this->getPort(); - switch ($port): - case 465: - return 'ssl'; - break; - case 587: - return 'tls'; - break; - case 2525: - return 'tls'; - break; - default: - return isset( $this->options [ PostmanOptions::SECURITY_TYPE ] ) ? $this->options [ PostmanOptions::SECURITY_TYPE ] : 'none'; - endswitch; + if ( isset( $this->options [ PostmanOptions::SECURITY_TYPE ] ) ) { + return $this->options [ PostmanOptions::SECURITY_TYPE ]; + } } + public function getUsername() { if ( defined( 'POST_SMTP_AUTH_USERNAME' ) ) { return POST_SMTP_AUTH_USERNAME; |