title: Send SMS using AWS SNS - .Net Core
body: <p>I'm trying to use AWS world wide messaging service using C#/.Net Core.</p>
  
  <p>However I do not receive the message in my phone number. Below is the code:</p>
  
  <pre><code>public static async Task&lt;PublishResponse&gt; sendSMS()
          {
  
              string accessKey = "my Key";
              string secretAccessKey = "my secret key";
              var client = new AmazonSimpleNotificationServiceClient(accessKey, 
              secretAccessKey, RegionEndpoint.USEast1);
  
              string phoneNumber = "my number";
  
              PublishRequest req = new PublishRequest();
              req.Message = "Hellloooo from core";
              req.PhoneNumber = "+2" + phoneNumber;   
              PublishResponse res = await client.PublishAsync(req);
              return res;
          }
  </code></pre>
  
  <hr>
  
  <p>And I invoke this method in the main function:</p>
  
  <pre><code> public static void Main(string[] args)
          {
               var respond = sendSMS();     
          }
  </code></pre>
  
  <p>I appreciate if anyone could help me with this. thanks in advance</p>