System.InvalidOperationException: No recipients have been specified.
at MailKit.Net.Smtp.SmtpClient.Send(FormatOptions options, MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)
at MailKit.MailTransport.Send(MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)
You need at least 1 address to be added to the message's
To
,Cc
orBcc
properties.