2017-03-15 6 views
1
나는 다음과 같이 SMS를 보낼 smsindiahub를 사용하고 있지만,이 메시지를 전송하지

로 전송 오류 : SMS에서 024, smsindiahub

function send_user_pickup_sms($mobile_number = '', $verification_code = '', $smsemailarray=array(),$date="",$time="") { 
    if ($mobile_number != '' && $verification_code != '') { 
     //$customer_name = $userDetails['FirstName'].' '.$userDetails['LastName']; 
     $message = 'projectname Order ID '.$verification_code.' picked up on '.$date.' at '.$time.': '; 
     foreach($smsemailarray as $item){ 
      $message .= $item["Qty"].$item["name"].' '; 
     } 

     $message = urlencode($message); 

     //Send Registration code to user via sms 
     $apiURL = "http://login.smsindiahub.in/vendorsms/pushsms.aspx?user=" . SMSHUB_USERNAME . "&password=" . SMSHUB_PASSWORD . "&msisdn=" . $mobile_number . "&sid=" . SMSHUB_SENDERID . "&msg=" . $message . "&fl=" . SMSHUB_FLAG . "&gwid=" . SMSHUB_GWID; 

     // Initiate curl 
     $ch = curl_init(); 
     // Set The Response Format to Json 
     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); 
     // Disable SSL verification 
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
     // Will return the response, if false it print the response 
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
     // Set the url 
     curl_setopt($ch, CURLOPT_URL, $apiURL); 
     // Execute 
     $result = curl_exec($ch); 
     echo"<pre>";print_R($result);die; 
     // Closing 
     curl_close($ch); 

     return $result; 
    } 
    return false; 
} 

는 아래와 같이 결과 인쇄 :

{"ErrorCode":"24","ErrorMessage":"Invalid template or template mismatchInvalid template or template mismatch","JobId":null,"MessageData":null} 

I을 아무도 잘못 이해하지 못한다면 어느 누구도 문제를 해결할 수 있습니까?

답변

1

smsindiahub 패널에서 확인하시기 바랍니다. 템플릿의 상태를 확인하십시오. 템플릿이 승인되어 있고 보류 중이 아닌지 확인하십시오.

감사합니다.