Код: Выделить всё
case enumEmailNotifiationType.TaskGroupOverDueReminder:
heading = "A pending task is due";
content.Append("A pending task is due.[/b]
");
content.Append($"Please review and complete pending task. Sign in to [url={this.ApplicationBaseUrl}]DC.XXXXX.com[/url] for details.
");
content.Append($"The task is regarding {data.EntityName}
");
content.Append($"For any questions, please contact [url=mailto:{AreaEmailsCSV(data)}]{AreaEmailsCSV(data)}[/url].
");
break;
Код: Выделить всё
private string AreaEmailsCSV(EntityDataEmailInfo data)
{
string mailTo;
if (data.AreasReplyTo != null && data.AreasReplyTo.Count != 0)
{
var emailLinks = data.AreasReplyTo.ConvertAll(a =>
$@"[url=mailto:{a.AreaContactEmail}]{a.AreaContactEmail}[/url]");
mailTo = string.Join(" or ", emailLinks);
}
else
{
mailTo = "[url=mailto:investmentcompliance@xxxx.com]InvestmentCompliance@xxxx.com[/url]";
}
return mailTo;
}

Подробнее здесь: https://stackoverflow.com/questions/793 ... bad-result