Configure the ASP.NET App

Open your appsettings.json file and add the following two fields to it:

  • VONAGE_API_KEY: Your API key
  • VONAGE_API_SECRET: Your API secret

You can find your API key and secret in the Dashboard

How to Send an SMS With ASP.NET Core MVC

Enhance your .NET application by adding the ability to send SMS messages to users. This tutorial walks you through adding a simple form to your web application, and sending an SMS message to the number provided.

Steps
1
Introduction to this tutorial
2
Prerequisites
3
Create the SMS Project File
4
Add Vonage Dotnet SDK
5
Create Send SMS Model
6
Create a Send SMS View
7
Set up Startup Route
8
Add an SMS Controller
9
Configure the ASP.NET App
10
Run the .NET App
11
What's Next?