Compare commits

...

2 Commits

Author SHA1 Message Date
jackchenyang 1a32cb6510 112 2024-05-18 15:22:03 +08:00
jackchenyang c3bddb1bc6 更新参数值不能为NULL问题 2024-05-18 15:21:23 +08:00
1 changed files with 3 additions and 1 deletions

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);