Esempio n. 1
0
        private static void PossiblySendCustomVariableGroupChangedEmail(CustomVariableGroup existingGroup, CustomVariableGroup newGroup)
        {
            if (ConfigurationManager.AppSettings["emailCustomVariableGroupChanges"].ToUpperInvariant() != "TRUE")
            {
                return;
            }

            string emailSubject = string.Format(CultureInfo.CurrentCulture,
                                                "{0} saved a Presto Custom Variable Group: {1}",
                                                IdentityHelper.UserName,
                                                newGroup.Name);

            string emailBody =
                "Machine: " + Environment.MachineName + Environment.NewLine +
                "User: "******"emailToForCustomVariableGroupChanges");
        }