コード例 #1
0
        public ActionResult EmailReport()
        {
            var options = StiMvcViewer.GetEmailOptions();

            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(StiMvcViewer.EmailReportResult(options));
        }