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

Receive an SMS and email it using Twilio SendGrid, C# and .NET Core

Blog post from Twilio

Post Details
Company
Date Published
Author
Layla Porter
Word Count
1,541
Language
English
Hacker News Points
-
Summary

This article describes how to use Twilio SendGrid and C# to receive an SMS message, extract its content, and send an email. The process involves setting up a new .NET Core 2.2 Web API project, installing necessary NuGet packages, creating an API endpoint for Twilio's webhook, and implementing an Emailer class using SendGrid. The code is tested by sending an SMS to the Twilio number and verifying that the email is successfully sent to a specified address. The article concludes with suggestions for further development, including logging for debugging purposes.