Пример #1
0
        /// <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));
        }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public abstract Task <MailMessage> GenerateAsync(MailMessageTemplateContext context);