Пример #1
0
        public async Task <ActionResult> Send(string to, string subject, string message)
        {
            var userTo = await _userRepository.Get(to);

            var userFrom = await _userRepository.GetUser(User.Identity.Name);

            EmailUtility.SendMsg("*****@*****.**", userTo.Email, subject, message, userFrom.Email);

            return(View());
        }