Skip to content

Commit

Permalink
Added back [DisableEmail] check, useful for development mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisonbrett committed Dec 11, 2024
1 parent 2687b2a commit cbc35ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pickuphockey/Services/EmailServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public Task SendMail(string subject, string body, string recipient)

public async Task SendMail(string subject, string body, List<EmailAddress> 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"]));
Expand Down

0 comments on commit cbc35ad

Please sign in to comment.