debugging sms
[namibia] / module / Utility / src / Utility / Comms / Notification.php
index 555af48..410620c 100644 (file)
@@ -78,6 +78,10 @@ class Notification
                $disableSms = false, $offline = false
        )
        {
+               \Utility\Debug::errorLog("send from template","sms:".$mobile." email:".$email);
+
+               error_log('Template sending: ' . $templateName);
+
                #-> Unsubscribe check.
                $em = \Utility\Registry::getEntityManager();
                if (!self::$_sendAsNewsletter && !self::$_skipSubscriptionCheck)
@@ -519,13 +523,15 @@ class Notification
                $apiMsgId = '';
                try
                {
+//                     \Utility\Debug::errorLog("tryingNotification","sms");
+                       error_log("tryingNotification",$mobile);
                        if (!$disableSms && $smsTemplate && $mobile)
                        {
                                if (IS_STAGE_ENV || 'production' == \Utility\Registry::getConfigParam('Instance'))
                                {
                                        if (IS_STAGE_ENV)
                                        {
-                                               $mobile = '+27722208069';
+                                               $mobile = '+27826147353';
                                        }
                                        $sms      = new Sms();
                                        $apiMsgId = $sms->send(array(