Skip to content

Commit

Permalink
Fix Smtp Settings Test (#13080)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffard authored Jan 14, 2023
1 parent 4539be8 commit 95729da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task<SmtpResult> SendAsync(MailMessage message)
return SmtpResult.Failed(errors.ToArray());
}

if (mimeMessage.From.Count == 0 && mimeMessage.Cc.Count == 0 && mimeMessage.Bcc.Count == 0)
if (mimeMessage.To.Count == 0 && mimeMessage.Cc.Count == 0 && mimeMessage.Bcc.Count == 0)
{
return SmtpResult.Failed(S["The mail message should have at least one of these headers: To, Cc or Bcc."]);
}
Expand Down

0 comments on commit 95729da

Please sign in to comment.