public static async Task Run([QueueTrigger("smsQueue", Connection = "AzureWebJobsStorage")]
                                     NotificationDispatcherViewModel queueItem, ILogger log)
        {
            log.LogInformation($"C# Queue trigger function processed: {queueItem}");

            var accountSid        = System.Environment.GetEnvironmentVariable("TWILO_ACCOUNT_SID");
            var authToken         = System.Environment.GetEnvironmentVariable("TWILO_AUTH_TOKEN");
            var twilioPhoneNumber = System.Environment.GetEnvironmentVariable("TWILO_PHONE_NUMBER");

            TwilioClient.Init(accountSid, authToken);

            foreach (var receiver in queueItem.Receivers)
            {
                var message = MessageResource.Create(
                    body: "From Shams App",
                    @from: new Twilio.Types.PhoneNumber(twilioPhoneNumber),
                    to: new Twilio.Types.PhoneNumber(receiver)
                    );

                log.LogInformation($"Sending SMS with sid {message.Sid}");
            }
        }
        public static async Task Run([QueueTrigger("emailQueue", Connection = "AzureWebJobsStorage")]
                                     NotificationDispatcherViewModel queueItem, ILogger log)
        {
            log.LogInformation($"Email queue trigger function processed: {queueItem}");

            var apiKey = System.Environment.GetEnvironmentVariable("SendGridKey");
            var client = new SendGridClient(apiKey);
            var msg    = new SendGridMessage
            {
                From             = new EmailAddress("*****@*****.**", "Majdee Zoabi"),
                Subject          = "Hello World SendGrid!",
                PlainTextContent = "Hello, Email!",
                HtmlContent      = "<strong>Hello, Email!</strong>"
            };

            foreach (var sendToEmail in queueItem.Receivers)
            {
                msg.AddTo(new EmailAddress(sendToEmail));
            }

            var response = await client.SendEmailAsync(msg);

            log.LogInformation($"Sending email status is {response.StatusCode}");
        }