From 90a59d22de6835381a29d6332d8e79ea707a4e39 Mon Sep 17 00:00:00 2001 From: Shaobin Date: Sat, 19 Oct 2024 15:42:26 +0800 Subject: [PATCH] no message --- .../WebPart/CustPOSendMailUIFormWebPartCodeBehindExtend.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UICode/CustPOSendMailUI/WebPart/CustPOSendMailUIFormWebPartCodeBehindExtend.cs b/UICode/CustPOSendMailUI/WebPart/CustPOSendMailUIFormWebPartCodeBehindExtend.cs index c62b8c1..5551f5b 100644 --- a/UICode/CustPOSendMailUI/WebPart/CustPOSendMailUIFormWebPartCodeBehindExtend.cs +++ b/UICode/CustPOSendMailUI/WebPart/CustPOSendMailUIFormWebPartCodeBehindExtend.cs @@ -318,7 +318,10 @@ namespace UFIDA.U9.Cust.WC.CustPOSendMailUI mailMessage += @" "; - message.CC.Add(PurMail);//采购员抄送人邮箱 + if (!string.IsNullOrEmpty(PurMail)) + { + message.CC.Add(PurMail);//采购员抄送人邮箱 + } message.CC.Add("yu.zhou@panawincn.com");//采购经理抄送人邮箱 message.Body = mailMessage;// mailContent;//邮件内容