Пример #1
0
        public override void InternalExecute()
        {
            if (!form.GetUserInfo())
            {
                return;
            }

            string address  = form.UserName + "@gmail.com";
            string password = form.Password;

            MailMessage msg = new MailMessage();

            msg.From    = new MailAddress(address);
            msg.Subject = "This is a 3ds Max node report";
            msg.To.Add(msg.From);
            msg.Body = NodeReport.GetReport();

            SmtpClient client = new SmtpClient("smtp.gmail.com", 587);

            client.EnableSsl             = true;
            client.UseDefaultCredentials = false;
            client.Credentials           = new NetworkCredential(address, password);
            client.Send(msg);
        }
        public static String GetReport()
        {
            NodeReport r = new NodeReport();

            return(r.Report);
        }