using System; using System.Collections.Generic; using System.Text; namespace DaoCommon { public class DaoUtil { public static string getNowString() { DateTime now = DateTime.Now; return now.ToString("s"); } /* no used any where used added here for reference/ just in case */ private void sendErrorMail(string sub, string msg) { System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.To.Add("thn@daoas.dk"); message.Subject = "Error from DaoMqPump2: " + sub; message.From = new System.Net.Mail.MailAddress("no-reply@daoas.dk"); message.Body = msg; System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("mail.dao.int"); smtp.Send(message); } } }