Exemplo n.º 1
0
        public bool SendNotification(string email, VolunteerNotificationTemplate volunteerNotificationType)
        {
            var message = new MailMessage(_mailConfiguration.SiteEmailAddress, email)
            {
                Subject    = GetTemplate(volunteerNotificationType.ToString().ToLower() + "-subject"),
                Body       = GetTemplate(volunteerNotificationType.ToString().ToLower() + "-body"),
                IsBodyHtml = true
            };

            return(_sender.Send(message));
        }
        public bool SendNotification(string email, VolunteerNotificationTemplate volunteerNotificationType)
        {
            var message = new MailMessage(_mailConfiguration.SiteEmailAddress, email)
            {
                Subject = GetTemplate(volunteerNotificationType.ToString().ToLower() + "-subject"),
                Body = GetTemplate(volunteerNotificationType.ToString().ToLower() + "-body"),
                IsBodyHtml = true
            };

            return _sender.Send(message);
        }