Exemplo n.º 1
0
        /// <summary>
        /// Sends an email to the users in the <see cref="Utility.PublishEmailNotificationRole"/> indicating that an item was approved.
        /// </summary>
        private void SendApprovalEmail()
        {
            UserInfo revisingUser = UserController.GetCurrentUserInfo();
            if (revisingUser.Username != null)
            {
                ArrayList users = new RoleController().GetUsersByRoleName(
                    revisingUser.PortalID, HostController.Instance.GetString(Utility.PublishEmailNotificationRole + this.PortalId));

                this.SendTemplatedEmail(revisingUser, (UserInfo[])users.ToArray(typeof(UserInfo)), this.EmailApprovalBody, this.EmailApprovalSubject);
            }
        }