summaryrefslogtreecommitdiff
path: root/Postman/PostmanOptions.php
diff options
context:
space:
mode:
authorYehuda Hassine <yehuda@myinbox.in>2018-08-03 17:25:37 +0300
committerYehuda Hassine <yehuda@myinbox.in>2018-08-03 17:25:37 +0300
commitee059457f47c9bc6ffc5be080cbb42cb2fa2a3f2 (patch)
tree5fd19f2abe2bc64eed4fe97f3e47dd6bee078609 /Postman/PostmanOptions.php
parent5ba3d1036e32da18cc8f24a3c72c8cd5a418d7f3 (diff)
downloadPost-SMTP-ee059457f47c9bc6ffc5be080cbb42cb2fa2a3f2.zip
remove the most stupid feature ever - read the blog for mor detailes
Diffstat (limited to 'Postman/PostmanOptions.php')
-rw-r--r--Postman/PostmanOptions.php18
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;