Пример #1
0
        public override async Task <SmtpResponse> SaveAsync(ISessionContext context, IMessageTransaction transaction, CancellationToken cancellationToken)
        {
            var textMessage = (ITextMessage)transaction.Message;
            var message     = MimeKit.MimeMessage.Load(textMessage.Content);

            queueService.Push(QueuedEmailMessage.FromMimeMessage(message));

            return(SmtpResponse.Ok);
        }