예제 #1
0
        public static void Send( String errorInfo )
        {
            AppErrorItem item = new AppErrorItem();
            item.ErrorHtml = errorInfo.Replace( "\n", "<br/>" );
            item.Occured = DateTime.Now;
            item.Title = "site error (" + DateTime.Now + ")";

            item.insert();
        }
예제 #2
0
        private void sendError( AppErrorItem job )
        {
            logger.Info( "begin send email" );

            String email = config.Instance.Site.Email;
            MailService mail = MailUtil.getMailService();
            mail.send( email, job.Title, job.ErrorHtml );

            cdb.delete( job );
        }
예제 #3
0
        public static void Send(String errorInfo)
        {
            AppErrorItem item = new AppErrorItem();

            item.ErrorHtml = errorInfo.Replace("\n", "<br/>");
            item.Occured   = DateTime.Now;
            item.Title     = "site error (" + DateTime.Now + ")";

            item.insert();
        }
예제 #4
0
        private void sendError( AppErrorItem job )
        {
            logger.Info( "begin send email" );

            String email = config.Instance.Site.Email;
            MailClient mail = MailClient.Init();
            mail.Send( email, job.Title, job.ErrorHtml );

            cdb.delete( job );
        }
예제 #5
0
        private void sendError(AppErrorItem job)
        {
            logger.Info("begin send email");

            String     email = config.Instance.Site.Email;
            MailClient mail  = MailClient.Init();

            mail.Send(email, job.Title, job.ErrorHtml);

            cdb.delete(job);
        }
예제 #6
0
        private void sendError(AppErrorItem job)
        {
            logger.Info("begin send email");

            String      email = config.Instance.Site.Email;
            MailService mail  = MailUtil.getMailService();

            mail.send(email, job.Title, job.ErrorHtml);

            cdb.delete(job);
        }