From 49f0b34996ecbe0e9393fd1a10043b10d22bcfd8 Mon Sep 17 00:00:00 2001 From: Riku Virtanen Date: Wed, 20 Nov 2024 11:57:35 +0200 Subject: [PATCH] Fixed build failures --- .../Frends.Smtp.SendEmail/SendEmailTask.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Frends.SMTP.SendEmail/Frends.Smtp.SendEmail/SendEmailTask.cs b/Frends.SMTP.SendEmail/Frends.Smtp.SendEmail/SendEmailTask.cs index 1159749..f8cc66f 100644 --- a/Frends.SMTP.SendEmail/Frends.Smtp.SendEmail/SendEmailTask.cs +++ b/Frends.SMTP.SendEmail/Frends.Smtp.SendEmail/SendEmailTask.cs @@ -144,13 +144,13 @@ private static MimeMessage InitializeMimeMessage(Input input) var separators = new[] { ',', ';' }; MailboxAddress[] recipients = string.IsNullOrEmpty(input.To) - ? [] + ? Array.Empty() : input.To.Split(separators, StringSplitOptions.RemoveEmptyEntries).Select(x => MailboxAddress.Parse(x)).ToArray(); MailboxAddress[] ccRecipients = string.IsNullOrEmpty(input.Cc) - ? [] + ? Array.Empty() : input.Cc.Split(separators, StringSplitOptions.RemoveEmptyEntries).Select(x => MailboxAddress.Parse(x)).ToArray(); MailboxAddress[] bccRecipients = string.IsNullOrEmpty(input.Bcc) - ? [] + ? Array.Empty() : input.Bcc.Split(separators, StringSplitOptions.RemoveEmptyEntries).Select(x => MailboxAddress.Parse(x)).ToArray(); //Create mail object