From ee059457f47c9bc6ffc5be080cbb42cb2fa2a3f2 Mon Sep 17 00:00:00 2001 From: Yehuda Hassine Date: Fri, 3 Aug 2018 17:25:37 +0300 Subject: remove the most stupid feature ever - read the blog for mor detailes --- Postman/PostmanOptions.php | 18 ++++-------------- Postman/PostmanViewController.php | 2 +- postman-smtp.php | 4 ++-- readme.txt | 9 ++++++--- 4 files changed, 13 insertions(+), 20 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; diff --git a/Postman/PostmanViewController.php b/Postman/PostmanViewController.php index 7aeeae4..d2e6f45 100644 --- a/Postman/PostmanViewController.php +++ b/Postman/PostmanViewController.php @@ -307,7 +307,7 @@ if ( ! class_exists( 'PostmanViewController' ) ) { echo '

- Version ' . $version . ' released with better compability for secure ports: Read Here + Version ' . $version . ' I do mistakes too - A must read: Read Here