From 75c3c9ee06d179838c1a7a8a677d025f17f94b97 Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Thu, 12 Feb 2026 03:15:54 -0500
Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 6 ++---
.../Service/Common/EmailLogService.cs | 23 ++++++++++++++++++-
2 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index f809f090f..74d1b453b 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -16790,17 +16790,17 @@
- 质疑
+ ����
- 一致性核查
+ һ���Ժ˲�
- 复制
+ ����
diff --git a/IRaCIS.Core.Application/Service/Common/EmailLogService.cs b/IRaCIS.Core.Application/Service/Common/EmailLogService.cs
index 177658f23..b83532e7e 100644
--- a/IRaCIS.Core.Application/Service/Common/EmailLogService.cs
+++ b/IRaCIS.Core.Application/Service/Common/EmailLogService.cs
@@ -23,6 +23,7 @@ using MimeKit;
using Panda.DynamicWebApi.Attributes;
using System.IO;
using System.Linq;
+using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Service;
@@ -251,7 +252,27 @@ public class EmailLogService(IRepository _emailLogRepository,
messageToSend.Body = builder.ToMessageBody();
- var msgid= await SendEmailHelper.SendEmailAsync(messageToSend, _systemEmailConfig);
+ SystemEmailSendConfig sendConfig = new SystemEmailSendConfig()
+ {
+ };
+
+ if (inDto.TrialId != null)
+ {
+ sendConfig = await _trialRepository.Where(x => x.Id == inDto.TrialId.Value).Select(x => new SystemEmailSendConfig()
+ {
+ Host = _systemEmailConfig.Host,
+ Port = _systemEmailConfig.Port,
+ FromEmail = x.EmailFromEmail,
+ AuthorizationCode = x.EmailAuthorizationCode
+ }).FirstNotNullAsync();
+
+ }
+ else
+ {
+ sendConfig = _systemEmailConfig;
+ }
+
+ var msgid= await SendEmailHelper.SendEmailAsync(messageToSend, sendConfig);
await _emailReSendLog.AddAsync(new EmailReSendLog()