您有一条新的待办事项:{request.Content}
" ); if (isSent) return Ok(new { code = 200, msg = "发送成功" }); return StatusCode(500, "邮件发送失败,请检查服务器配置或应用密码"); } // 定义请求实体 public class EmailRequest { public string Email { get; set; } = string.Empty; public string Content { get; set; } = string.Empty; } #endregion } }