Skip to content

Commit

Permalink
Merge pull request #732 from bcgov/yj
Browse files Browse the repository at this point in the history
fix: remove empty email addresses
  • Loading branch information
ychung-mot authored Oct 22, 2024
2 parents 12790c0 + 7460372 commit 4d975e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/StrDss.Service/EmailTemplates/EmailTemplateBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public async Task<string> SendEmail()
Body = GetContent(),
From = From,
Subject = Subject,
To = To,
Cc = Cc,
Bcc = Bcc,
To = To.Where(email => !string.IsNullOrWhiteSpace(email)).ToList(),
Cc = Cc.Where(email => !string.IsNullOrWhiteSpace(email)).ToList(),
Bcc = Bcc.Where(email => !string.IsNullOrWhiteSpace(email)).ToList(),
Info = Info,
Attachments = Attachments,
};
Expand Down

0 comments on commit 4d975e2

Please sign in to comment.