Skip to content

Commit

Permalink
Fixed build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Riku Virtanen committed Nov 20, 2024
1 parent bcc45c2 commit 49f0b34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Frends.SMTP.SendEmail/Frends.Smtp.SendEmail/SendEmailTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ private static MimeMessage InitializeMimeMessage(Input input)
var separators = new[] { ',', ';' };

MailboxAddress[] recipients = string.IsNullOrEmpty(input.To)
? []
? Array.Empty<MailboxAddress>()
: input.To.Split(separators, StringSplitOptions.RemoveEmptyEntries).Select(x => MailboxAddress.Parse(x)).ToArray();
MailboxAddress[] ccRecipients = string.IsNullOrEmpty(input.Cc)
? []
? Array.Empty<MailboxAddress>()
: input.Cc.Split(separators, StringSplitOptions.RemoveEmptyEntries).Select(x => MailboxAddress.Parse(x)).ToArray();
MailboxAddress[] bccRecipients = string.IsNullOrEmpty(input.Bcc)
? []
? Array.Empty<MailboxAddress>()
: input.Bcc.Split(separators, StringSplitOptions.RemoveEmptyEntries).Select(x => MailboxAddress.Parse(x)).ToArray();

//Create mail object
Expand Down

0 comments on commit 49f0b34

Please sign in to comment.