Пример #1
0
        public void SendEmail([FromBody] EmailModel emailModel)
        {
            string url      = _configuration["Email:EmailSendServiceBaseURL"];
            string username = _configuration["Email:EmailSendServiceUsername"];
            string password = _configuration["Email:EmailSendServicePassword"];

            var service = new SendService(username, password, url);

            var status = service.SendEmail("*****@*****.**", "CloudXdb", emailModel.EmailTo, emailModel.Subject, emailModel.Content);
        }