更新参数值不能为NULL问题

This commit is contained in:
jackchenyang 2024-05-18 15:21:23 +08:00
parent d72949213d
commit c3bddb1bc6
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -120,7 +120,9 @@ namespace FineUIPro.Web.common
mail.Subject = mailSubject;
mail.BodyFormat = System.Web.Mail.MailFormat.Html;
mail.Body =mailBody;
mail.Cc = string.Join(",", mailCC);
if(mailCC!=null &&mailCC.Length>0)
mail.Cc = string.Join(",", mailCC);
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", ps.EmailYx);
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", ps.EmailPass);