title: AWS php Sdk error while sending sms
body: <p>Iam getting an error while trying to send an sms through AWS php sdk. My script is below:</p>
  
  <pre><code>    require './aws-autoloader.php';
  
       error_reporting(E_ALL);
      ini_set("display_errors", 1);
  
     $params = array(
  'credentials' =&gt; array(
      'key' =&gt; 'my_key',
      'secret' =&gt; 'my_secret_key',
  ),
  'region' =&gt; 'ap-south-1', // &lt; your aws from SNS Topic region
  'version' =&gt; 'latest'
   );
   $sns = new \Aws\Sns\SnsClient($params);
  
   $args = array(
  "SenderID" =&gt; "",
  "SMSType" =&gt; "Transactional",
  "Message" =&gt; "Hello World!",
  "PhoneNumber" =&gt; "+919939067673"
   );
  
   $result = $sns-&gt;publish($args);
   echo "&lt;pre&gt;";
   var_dump($result);
   echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>Below is the error which i am getting:</p>
  
  <p>Fatal error: Uncaught exception 'Aws\Sns\Exception\SnsException' with message 'Error executing "Publish" on "<a href="https://sns.ap-south-1.amazonaws.com" rel="nofollow noreferrer">https://sns.ap-south-1.amazonaws.com</a>"; AWS HTTP error: Client error: <code>POST https://sns.ap-south-1.amazonaws.com</code> resulted in a <code>400 Bad Request</code> response:   Sender <Code>InvalidPara (truncated...) InvalidParameter (client): Invalid parameter: PhoneNumber Reason: +919939067673 is not valid to publish to -   Sender <Code>InvalidParameter</Code> Invalid parameter: PhoneNumber Reason: +919939067673 is not valid to publish to  9c89eb86-0ba4-5194-acdb-b8c03c139866  ' exception 'GuzzleHttp\Exception\ClientException' with message 'Client error: <code>POST https://sns.ap-south-1.amazonaws.com</code> resulted in a 400 Bad Request</code> response: 
  
  <p>Can anyone pls guide me on this. Thanx</p>