public IActionResult EmailReport()
        {
            StiEmailOptions options = StiNetCoreViewer.GetEmailOptions(this);

            options.AddressFrom = "*****@*****.**";
            //options.AddressTo = "*****@*****.**";
            //options.Subject = "Quarterly Report";
            //options.Body = "Quarterly report on arrival of the goods.";

            options.Host = "smtp.test.com";
            //options.Port = 465;
            options.UserName = "******";
            options.Password = "******";

            return(StiNetCoreViewer.EmailReportResult(this, options));
        }
        public IActionResult EmailReport()
        {
            StiEmailOptions options = StiAngularViewer.GetEmailOptions(this);

            // Passed from the viewer, can be checked and changed
            // options.AddressTo = "";
            // options.Subject = "";
            // options.Body = "";
            // Should be filled here
            options.AddressFrom = "*****@*****.**";
            options.Host        = "smtp.test.com";
            options.Port        = 465;
            options.UserName    = "******";
            options.Password    = "******";
            // options.CC.Add("*****@*****.**");
            // options.BCC.Add("*****@*****.**");
            // options.EnableSsl = true;

            return(StiAngularViewer.EmailReportResult(this, options));
        }