Add SMS Controller

Right-click on the Controllers Folder and select add->Controller. Select "Add Empty MVC Controller" and name it SmsController.

Add using statements for Vonage.Messaging, Vonage.Request, and Microsoft.Extensions.Configuration at the top of this file.

Inject Configuration

Dependency inject an IConfiguration object via the constructor like so:

Add Send SMS Action

Next, add a Send SMS Action to the controller:

How to Receive SMS Delivery Receipts with ASP.NET Core MVC

Delivery receipts allow you to get information about when an SMS is delivered to a user's handset. This tutorial shows how you can receive these delivery receipt notifications in your ASP .NET application.

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
Add Delivery Receipt Route to Controller
10
Configure the ASP.NET App
11
Run the .NET App
12
Conclusion