Exemple #1
0
        /// <summary>
        /// Creates and adds new 'Forward To Email' action to GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="email">Email address where to forward message.</param>
        public GlobalMessageRuleAction_ForwardToEmail Add_ForwardToEmail(string description, string email)
        {
            GlobalMessageRuleAction_ForwardToEmail action = new GlobalMessageRuleAction_ForwardToEmail(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                email
                );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return(action);
        }
        /// <summary>
        /// Creates and adds new 'Forward To Email' action to GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="email">Email address where to forward message.</param>
        public GlobalMessageRuleAction_ForwardToEmail Add_ForwardToEmail(string description,string email)
        {
            GlobalMessageRuleAction_ForwardToEmail action = new GlobalMessageRuleAction_ForwardToEmail(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                email
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }