7 |
public class DaoUtil |
public class DaoUtil |
8 |
{ |
{ |
9 |
|
|
|
public static string getNowString() |
|
|
{ |
|
|
DateTime now = DateTime.Now; |
|
10 |
|
|
11 |
return now.ToString("s"); |
|
12 |
} |
|
13 |
|
|
14 |
/* no used any where used added here for reference/ just in case */ |
/* no used any where used added here for reference/ just in case */ |
15 |
private void sendErrorMail(string sub, string msg) |
private void sendErrorMail(string sub, string msg) |
23 |
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("mail.dao.int"); |
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("mail.dao.int"); |
24 |
smtp.Send(message); |
smtp.Send(message); |
25 |
} |
} |
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
} |
} |
31 |
} |
} |