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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2169 - (hide annotations) (download)
Fri May 16 21:10:02 2014 UTC (10 years ago) by torben
File size: 759 byte(s)
WIP
1 torben 2166 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 torben 2168
13    
14 torben 2166 /* 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 torben 2168
27    
28    
29    
30 torben 2166 }
31     }

  ViewVC Help
Powered by ViewVC 1.1.20