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