Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

SMS and MMS Marketing Notifications with C# and ASP.NET MVC

Blog post from Twilio

Post Details
Company
Date Published
Author
Stephanie Marchante
Word Count
1,638
Language
English
Hacker News Points
-
Summary

A C# and ASP.NET MVC application can be used to implement SMS and MMS marketing notifications using Twilio tools. The application requires a Subscriber model to keep track of users who have requested to receive messages, and a MessageCreator abstraction that produces the message to be returned to the sender. The application also includes logic for managing incoming messages, creating new subscribers, and sending out messages via Twilio's REST API. The controller handles form submissions, validates user input, and updates subscriber status accordingly. The NotificationService class is responsible for sending SMS or MMS notifications using Twilio's Message API. With this implementation, a marketing team can use the application to send perfectly crafted messages to subscribers, who have opted-in to receive notifications via text or MMS.