可以尝试以下方法进行故障排除:
services.AddFluentEmail("example@example.com")
.AddSmtpSender("smtp.example.com", 587, "example@example.com", "password");
await email.To(emailToSendTo)
.Subject("Subject")
.Body("Body")
.SendAsync();
services.AddFluentEmail("example@example.com")
.AddSmtpSender("smtp.example.com", 587, "example@example.com", "password")
.UseSPF("example.com")
.UseDKIM("example.com", "DKIMSelector", "DKIMPrivateKey");
await email.To(emailToSendTo)
.Subject("Subject")
.Body("Body")
.AttachFromStream("FileName.txt", new MemoryStream(Encoding.UTF8.GetBytes("FileContent")))
.SendAsync();