NotifySend.php
authorAlan Knowles <alan@roojs.com>
Mon, 19 Jan 2015 04:42:37 +0000 (12:42 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 19 Jan 2015 04:42:37 +0000 (12:42 +0800)
NotifySend.php

index 9f5d227..cfd8eea 100644 (file)
@@ -18,7 +18,11 @@ require_once 'Pman.php';
  *      recipients =>
  *      body =>
  *  )
- * 
+ *
+ *
+ * Note uses configuration
+ *
+ * Core_NotifySend[host] = 'localhost' << to override direct sending..
  * 
  */
 
@@ -445,6 +449,11 @@ class Pman_Core_NotifySend extends Pman
     }
     function mxs($fqdn)
     {
+        $ff = HTML_FlexyFramework::get();
+        if (isset($ff['Core_NotifySend']['host'])) {
+            return array($ff['Core_NotifySend']['host']);
+        }
+        
         $mx_records = array();
         $mx_weight = array();
         $mxs = array();