IamCalvinBrown.com a Blog Site

Code Examples, Consulting Advice and lots of other cool things

Send a text message (SMS) using Amazon SNS

(This assumes you've already setup the topic and have your own Topic ARN)


using Amazon.SimpleNotificationService;

using Amazon.SimpleNotificationService.Model;

// be sure this is the region you're choosing

AmazonSimpleNotificationServiceClient client = new AmazonSimpleNotificationServiceClient(Amazon.RegionEndpoint.USEast1);

// Publish a message to an Amazon SNS topic.

PublishRequest publishRequest = new PublishRequest("arn:aws:sns:us-east-1:123456:TESTTOPIC","this is the message");

var publishResponse = await client.PublishAsync(publishRequest);

Comments (2) -

  • add hunter

    10/21/2019 8:01:38 AM |

    Hey! that one is nice. please share more your ideas about <a href="http://addhunters.com/";>properties for sale</a>

  • NmbQK4fITVtP

    10/21/2019 8:46:55 AM |

    645966 459311Hey mate, .This was an excellent post for such a hard subject to talk about. I look forward to seeing many more excellent posts like this one. Thanks 274456

Loading