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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20