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(); }
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 ); }
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(); }
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 ); }
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); }
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); }