/// <inheritdoc /> public override Task <MailMessage> GenerateAsync(MailMessageTemplateContext context) { var message = new MailMessage { From = context.From, Subject = context.Subject }; foreach (var address in context.To) { message.To.Add(address); } return(Task.FromResult(message)); }
/// <summary> /// /// </summary> /// <returns></returns> public abstract Task <MailMessage> GenerateAsync(MailMessageTemplateContext context);