How to do it...

  1. Create a new ManualTrigger - C# template, as shown in the following screenshot, with the name SharedClasses:
  1. Once the trigger is created, navigate to the View files tab and add a new file named Helper.csx by clicking on the Add button, as shown in the following screenshot:
  1. Copy the following code and paste in the new Helper.csx file. The following code accepts all the information required for sending an email using SendGrid:
        #r "SendGrid"        using System.Net;        using SendGrid.Helpers.Mail;        public static class Helper         { public ...

Get Azure Serverless Computing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.