Parcourir la source

check reserved addresses

andre il y a 4 ans
Parent
commit
2924a39664
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      zimbraAddressAvailable.php

+ 8 - 1
zimbraAddressAvailable.php

@@ -69,11 +69,18 @@ $customfieldsvaluesObj = Capsule::table('tblcustomfieldsvalues')
 	->whereIn('fieldid', $customfieldIDs)
 	->get()
 	->toArray();
+foreach ($customfieldsvaluesObj as $customfieldsvalue) {
+	$mailname = $customfieldsvalue->value;
+	next($customfieldsvaluesObj);
+	$maildomain = $customfieldsvalue->value;
+	$reservedAddress = $mailname . '@' . $maildomain;
+	array_push($customfieldsvalues, $reservedAddress);
+}
 
 logModuleCall(
 	'zimbrasingle',
 	__FUNCTION__,
-	$hostingIDs,
+	$customfieldsvalues,
 	'debug',
 	$customfieldsvaluesObj
 );