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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.