@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user