/[projects]/dao/DaoMqPump2/DaoCommon/DaoUtil.cs
ViewVC logotype

Contents of /dao/DaoMqPump2/DaoCommon/DaoUtil.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2166 - (show annotations) (download)
Fri May 16 18:24:05 2014 UTC (10 years ago) by torben
File size: 895 byte(s)
Svn:ignore
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace DaoCommon
6 {
7 public class DaoUtil
8 {
9
10 public static string getNowString()
11 {
12 DateTime now = DateTime.Now;
13
14 return now.ToString("s");
15 }
16
17 /* no used any where used added here for reference/ just in case */
18 private void sendErrorMail(string sub, string msg)
19 {
20 System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
21 message.To.Add("thn@daoas.dk");
22 message.Subject = "Error from DaoMqPump2: " + sub;
23 message.From = new System.Net.Mail.MailAddress("no-reply@daoas.dk");
24 message.Body = msg;
25
26 System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("mail.dao.int");
27 smtp.Send(message);
28 }
29 }
30 }

  ViewVC Help
Powered by ViewVC 1.1.20