diff --git a/MailSend.Web/Controllers/MailController.cs b/MailSend.Web/Controllers/MailController.cs index e9dbaea..1a0a8e6 100644 --- a/MailSend.Web/Controllers/MailController.cs +++ b/MailSend.Web/Controllers/MailController.cs @@ -102,7 +102,7 @@ namespace MailSend.Web.Controllers mailSend.ShowName = item.ShowName; //附件处理 - if (item.Attaches.Count > 0) + if (item.Attaches != null && item.Attaches.Count > 0) { var list = new List(); foreach (var att in item.Attaches)