Example #1
0
        public bool send_email(string site, string[] email_to, string[] email_cc, string[] email_bcc, string email_subject, string username_for_impersonation, string view_location, Dictionary <String, String> view_filter_dictionary)
        {
            try
            {
                BeholdEmailer tabemailer = this.create_behold_emailer_from_config(site);
                Watermarker   wm         = this.create_watermarker_from_config();

                try
                {
                    bool result;


                    result = tabemailer.generate_email_from_view(emailSender.Text, email_to, email_cc, email_bcc, email_subject, "Please see attached Tableau PDF", username_for_impersonation,
                                                                 view_location, "fullpdf", view_filter_dictionary, wm);

                    return(result);
                }
                catch (ConfigurationException ce)
                {
                    this.logger.Log(ce.Message);
                    return(false);
                }
            }
            // From Repository Failing
            catch (ConfigurationException ce)
            {
                this.logger.Log(ce.Message);
                return(false);
            }
        }
Example #2
0
        public bool send_email()
        {
            try
            {
                BeholdEmailer tabemailer = this.create_behold_emailer_from_config();
                Watermarker   wm         = this.create_watermarker_from_config();

                try
                {
                    bool result;


                    result = tabemailer.generate_email_from_view(emailSender.Text, new string[1] {
                        testEmailRecipient.Text
                    }, new string[0] {
                    }, new string[0] {
                    }, testEmailSubject.Text, "Please see attached Tableau PDF", testUsernameForImpersonation.Text,
                                                                 testViewLocation.Text, "fullpdf", new Dictionary <String, String>(), wm);

                    return(result);
                }
                catch (ConfigurationException ce)
                {
                    this.logger.Log(ce.Message);
                    return(false);
                }
            }
            // From Repository Failing
            catch (ConfigurationException ce)
            {
                this.logger.Log(ce.Message);
                return(false);
            }
        }