summaryrefslogtreecommitdiff
path: root/Postman/Postman-Configuration
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-07-23 15:13:28 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-07-23 15:13:28 +0000
commit677010bdab6f3a935edb87e5723ee2f5ac20fcf8 (patch)
tree96915055ee7be043ac24abe3eeafda63f75f4126 /Postman/Postman-Configuration
parent33eb31313551ea6fd29b3fc841eaf5bf1d9a9e4f (diff)
downloadPost-SMTP-677010bdab6f3a935edb87e5723ee2f5ac20fcf8.zip
Removed deprecated functions from 7.2 + comment unready feature
Diffstat (limited to 'Postman/Postman-Configuration')
-rw-r--r--Postman/Postman-Configuration/PostmanSmtpDiscovery.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Postman/Postman-Configuration/PostmanSmtpDiscovery.php b/Postman/Postman-Configuration/PostmanSmtpDiscovery.php
index 60728c6..2d568cd 100644
--- a/Postman/Postman-Configuration/PostmanSmtpDiscovery.php
+++ b/Postman/Postman-Configuration/PostmanSmtpDiscovery.php
@@ -84,7 +84,7 @@ if (! class_exists ( 'PostmanSmtpMappings' )) {
);
public static function getSmtpFromEmail($hostname) {
reset ( PostmanSmtpMappings::$emailDomain );
- while ( list ( $domain, $smtp ) = each ( PostmanSmtpMappings::$emailDomain ) ) {
+ foreach ( PostmanSmtpMappings::$emailDomain as $domain => $smtp ) {
if (strcasecmp ( $hostname, $domain ) == 0) {
return $smtp;
}
@@ -93,7 +93,7 @@ if (! class_exists ( 'PostmanSmtpMappings' )) {
}
public static function getSmtpFromMx($mx) {
reset ( PostmanSmtpMappings::$mxMappings );
- while ( list ( $domain, $smtp ) = each ( PostmanSmtpMappings::$mxMappings ) ) {
+ foreach ( PostmanSmtpMappings::$mxMappings as $domain => $smtp ) {
if (PostmanUtils::endswith ( $mx, $domain )) {
return $smtp;
}