Ejemplo n.º 1
0
        public Task SendMail(EmailBase email)
        {
            IMailClient   mailClient   = _emailFactory.CreateMailClient();
            IEmailBuilder emailBuilder = _emailFactory.CreateEmailBuilder();

            _emailInitializer.Initialize(emailBuilder, email);
            return(mailClient.SendAsync(emailBuilder));
        }