修改
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2024-11-21 15:16:54 +08:00
parent 6c434e2ace
commit ece6832bb8
4 changed files with 59 additions and 4 deletions
@@ -324,7 +324,7 @@ namespace IRaCIS.Application.Contracts
public class SendEmailInDto
{
public string Email { get; set; }
public List<string> Email { get; set; }
public string Url { get; set; }
}
@@ -400,12 +400,12 @@ namespace IRaCIS.Application.Contracts
/// <summary>
/// 适应症
/// </summary>
public string Indication { get; set; }
public string Indication { get; set; } = string.Empty;
/// <summary>
/// 适应症
/// </summary>
public string IndicationEn { get; set; }
public string IndicationEn { get; set; } = string.Empty;
/// <summary>
/// 项目Id
@@ -301,7 +301,12 @@ namespace IRaCIS.Core.Application.Service
var messageToSend = new MimeMessage();
//发件地址
messageToSend.From.Add(new MailboxAddress(_systemEmailConfig.FromName, _systemEmailConfig.FromEmail));
messageToSend.To.Add(new MailboxAddress(String.Empty, inDto.Email));
foreach (var item in inDto.Email)
{
messageToSend.To.Add(new MailboxAddress(String.Empty, item));
}
Func<(string topicStr, string htmlBodyStr), (string topicStr, string htmlBodyStr)> emailConfigFunc = input =>