Build the future of communications.
Start building for free

dotnet core posts

  • By Niels Swimberghe
    How to send recurring emails in C# .NET using SendGrid and Quartz.NET How to send recurring emails in C# .NET using SendGrid and Quartz.NET

    Many applications have the need to send emails on a periodic basis. A common example of this is a weekly digest, where the email recaps everything that happened that week. There are many ways you could send recurring emails using .NET. You could use the Task Scheduler on Windows, use crontab on Linux, or even develop your own job scheduling implementation. In this tutorial, you'll learn how to schedule recurring emails using Twilio SendGrid and Quartz.NET.

    Prerequisites

    You will need the following things to follow along:

    • OS that supports .NET (Windows/Mac/Linux)
    • .NET 6 SDK (download)
    • A code editor or IDE (Recommended: VS Code with C# plugin, Visual Studio, JetBrains Rider)
    • A Twilio SendGrid account (signup)

    Everything you’ll need to do for this tutorial applies even if you’re using an older version of .NET (Core), however you’ll need to make minor adjustments.

    Create your .NET application …

    Read More
  • By Niels Swimberghe
    How to send Emails with C# and .NET 6 using the SendGrid API Send Emails using the SendGrid API with .NET 6 and C#

    Email has been around for decades, but sending emails at scale is still hard. With Twilio SendGrid, you can send emails without worrying about scalability. You can use the SendGrid APIs and SDKs to start sending emails within minutes. You could also use the SMTP protocol if you already have an existing codebase that relies on SMTP. In this post, you will learn how to send emails using the SendGrid .NET SDK and a .NET 6 console application.

    Prerequisites

    You will need the following things to follow along:

    • OS that supports .NET (Windows/Mac/Linux)
    • .NET 6 SDK (download)
    • A code editor or IDE (Recommended: VS Code with C# plugin, Visual Studio, JetBrains Rider)
    • A Twilio SendGrid account (signup)

    Everything you will learn applies even if you’re using an older version of .NET (Core), but you will need to make minor adjustments.

    Configuring your SendGrid account to …

    Read More
  • By AJ Saulsberry
    Validating Phone Numbers Effectively with ASP.NET Core 3.1 Razor Pages Validating Phone Numbers Effectively In Razor Pages

    Data validation is an essential part of application design and development, and telephone numbers are as tricky to validate as they are ubiquitous. In many cases a phone number will be the primary way your organization communicates with its customers. Whether the communication will be by voice, SMS, or messaging app, having a correct phone number is a requirement.

    Developers using .NET Core and the .NET Framework can do validation for a number of different data types, including phone numbers, with the System.ComponentModel.DataAnnotations namespace, but the PhoneAttribute class has its limitations. To learn more, see the .NET Data Validation section of the previous Twilio Blog post on this subject: Validating phone numbers effectively with C# and the .NET frameworks.

    Fortunately, the libphonenumber-csharp open source library provides extensive resources for validating and manipulating phone numbers of all types and it’s conveniently available as a NuGet package. This post shows …

    Read More
  • By Layla Porter
    Get off the naughty list with Twilio Autopilot, Azure Functions and Table Storage Get off the naughty list header

    This blog post is part of The Third Annual C# Advent by Matthew Groves which is a C# advent calendar.

    Do you worry you're stuck on the naughty list? Have you forgotten all the good deeds and awesome things you've done over the past year to deserve more than a sack of coal?

    Tracking your little wins as they happen is a fantastic way to remember your successes whether you're sharing the list with your boss or Santa Claus or just yourself!

    We will use Twilio Autopilot to capture your accomplishments, thus enabling you to keep a log via SMS, voice, WhatsApp, Slack or even your Amazon Alexa or Google Home device!

    We're going to save the output of Autopilot to Azure Table Storage via an Azure Function.

    This post assumes some basic knowledge of C# and RESTful APIs.

    To get started, we will need:

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.