From cbc35ad845d58c325787e9511b6fad7e6c6cbcd9 Mon Sep 17 00:00:00 2001 From: Brett Morrison Date: Wed, 11 Dec 2024 12:45:53 -0800 Subject: [PATCH] Added back [DisableEmail] check, useful for development mode. --- pickuphockey/Services/EmailServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pickuphockey/Services/EmailServices.cs b/pickuphockey/Services/EmailServices.cs index a37deed..32e34d5 100644 --- a/pickuphockey/Services/EmailServices.cs +++ b/pickuphockey/Services/EmailServices.cs @@ -22,8 +22,8 @@ public Task SendMail(string subject, string body, string recipient) public async Task SendMail(string subject, string body, List recipientList) { - //if (ConfigurationManager.AppSettings["DisableEmail"] != null && ConfigurationManager.AppSettings["DisableEmail"] == "true") - // return; + if (ConfigurationManager.AppSettings["DisableEmail"] != null && ConfigurationManager.AppSettings["DisableEmail"] == "true") + return; var message = new SendGridMessage(); message.SetFrom(new EmailAddress(ConfigurationManager.AppSettings["SendGridFromAddress"]));