title: Sending Login SMS OTP messages through Textlocal API
body: <p>I am getting the error response:</p>
  <pre><code>{&quot;errors&quot;:[{&quot;code&quot;:204,&quot;message&quot;:&quot;Invalid message content&quot;}],&quot;status&quot;:&quot;failure&quot;}
  </code></pre>
  <p>When I try to submit a message using this SMS template I have registered with Textlocal:</p>
  <pre><code>&quot;Your OTP for the ImctR platform is:{#Var#}&quot;.&quot;Team NEW BUILD PVT.LTD.&quot;
  </code></pre>
  <p>How should I send a message with this template? My current code is:</p>
  <pre><code>//FOR MOBILE OTP
       function sendMobileOTP($owner_mob_no,$otp,$apiKey){
              $rawMsg = &quot;Your OTP for the ImctR platform is:{#Var#}&quot;.
              $otp.&quot;Team NEW BUILD PVT.LTD.&quot;;
                        
                // Message details
                $numbers = array($owner_mob_no);
                $sender = urlencode('IMPCTR');
                $message = rawurlencode($rawMsg);
            
                $numbers = implode(',', $numbers);
            
                // Prepare data for POST request
                $data = array('apikey' =&gt; $apiKey, 'numbers' =&gt; $numbers, &quot;sender&quot; =&gt; $sender, &quot;message&quot; =&gt; $message);
            
                // Send the POST request with cURL
                $ch = curl_init('https://api.textlocal.in/send/');
                curl_setopt($ch, CURLOPT_POST, true);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                $response = curl_exec($ch);
                curl_close($ch);
                //return $response;
                print_r($response);
      }
  </code></pre>