Compare commits
No commits in common. "13f25867b830d58ccc8f9afb85be75504c462d2c" and "61fa677598d8789baac4027909e132a63e08ee63" have entirely different histories.
13f25867b8
...
61fa677598
@ -22,7 +22,6 @@ namespace AppServer
|
|||||||
private volatile DBsubsOperationManager dbsubsoperManage;
|
private volatile DBsubsOperationManager dbsubsoperManage;
|
||||||
private volatile DBvehiclesManager dbvehs;
|
private volatile DBvehiclesManager dbvehs;
|
||||||
private DBvehiclesManager DBvehInfo;
|
private DBvehiclesManager DBvehInfo;
|
||||||
List<string> blackListAddress = new List<string>();
|
|
||||||
|
|
||||||
public static volatile Int32 LocationCheckQueuesCount = 0;
|
public static volatile Int32 LocationCheckQueuesCount = 0;
|
||||||
Int64 count = 0;
|
Int64 count = 0;
|
||||||
@ -411,12 +410,6 @@ namespace AppServer
|
|||||||
|
|
||||||
if (Program.cfg.enableEmailService && !String.IsNullOrEmpty(Program.cfg.emailAddress) && !String.IsNullOrEmpty(mailAdr))
|
if (Program.cfg.enableEmailService && !String.IsNullOrEmpty(Program.cfg.emailAddress) && !String.IsNullOrEmpty(mailAdr))
|
||||||
{
|
{
|
||||||
if (blackListAddress.Contains(mailAdr))
|
|
||||||
{
|
|
||||||
Utils.WriteLine($" sendMailGeo : The email was not sent. Email address '{mailAdr}' is in blacklist ");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
MailAddress from = new MailAddress(Program.cfg.emailAddress);
|
MailAddress from = new MailAddress(Program.cfg.emailAddress);
|
||||||
@ -440,10 +433,7 @@ namespace AppServer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
if (ex.ToString().Contains("timed out"))
|
Console.WriteLine("Exception in sendMailGeo: ", ex.ToString());
|
||||||
blackListAddress.Add(mailAdr);
|
|
||||||
|
|
||||||
Utils.WriteLine($"Exception in sendMailGeo: {ex.ToString()}");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -457,13 +447,6 @@ namespace AppServer
|
|||||||
{
|
{
|
||||||
if (Program.cfg.enableEmailService && !String.IsNullOrEmpty(Program.cfg.emailAddress) && !String.IsNullOrEmpty(mailAdr))
|
if (Program.cfg.enableEmailService && !String.IsNullOrEmpty(Program.cfg.emailAddress) && !String.IsNullOrEmpty(mailAdr))
|
||||||
{
|
{
|
||||||
|
|
||||||
if (blackListAddress.Contains(mailAdr))
|
|
||||||
{
|
|
||||||
Utils.WriteLine($" sendAlarmMail : The email was not sent. Email address '{mailAdr}' is in blacklist ");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
MailAddress from = new MailAddress(Program.cfg.emailAddress);
|
MailAddress from = new MailAddress(Program.cfg.emailAddress);
|
||||||
@ -475,15 +458,12 @@ namespace AppServer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
if (ex.ToString().Contains("timed out"))
|
|
||||||
blackListAddress.Add(mailAdr);
|
|
||||||
|
|
||||||
Utils.WriteLine("Exception in sendMailAlarm2: {0}" + ex.ToString(), ConsoleColor.Red);
|
Utils.WriteLine("Exception in sendMailAlarm2: {0}" + ex.ToString(), ConsoleColor.Red);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Utils.WriteLine("Email Server not Set", ConsoleColor.Cyan);
|
Utils.WriteLine("Email Server not Set",ConsoleColor.Cyan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@ namespace AppServer
|
|||||||
private DBvehiclesManager dbvehs;
|
private DBvehiclesManager dbvehs;
|
||||||
internal DBsubsOperationManager dbsubsoperManage;
|
internal DBsubsOperationManager dbsubsoperManage;
|
||||||
private DBcallPatchManager dbCallPatch;
|
private DBcallPatchManager dbCallPatch;
|
||||||
private List<string> blackListAddress = new List<string>();
|
|
||||||
|
|
||||||
#region code for zone
|
#region code for zone
|
||||||
private volatile static ArrayList ZoneList = new ArrayList();
|
private volatile static ArrayList ZoneList = new ArrayList();
|
||||||
private volatile static ArrayList LandList = new ArrayList();
|
private volatile static ArrayList LandList = new ArrayList();
|
||||||
@ -2152,13 +2150,6 @@ namespace AppServer
|
|||||||
|
|
||||||
private void sendAlarmMail(string mes, string mailAdr)
|
private void sendAlarmMail(string mes, string mailAdr)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (blackListAddress.Contains(mailAdr))
|
|
||||||
{
|
|
||||||
Utils.WriteLine($" sendAlarmMail : The email was not sent. Email address '{mailAdr}' is in blacklist ");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
MailAddress from = new MailAddress(Program.cfg.emailAddress);
|
MailAddress from = new MailAddress(Program.cfg.emailAddress);
|
||||||
@ -2170,17 +2161,12 @@ namespace AppServer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
if (ex.ToString().Contains("timed out"))
|
|
||||||
blackListAddress.Add(mailAdr);
|
|
||||||
|
|
||||||
Utils.WriteLine("Exception in sendMailAlarm: " + ex.ToString(), ConsoleColor.Red);
|
Utils.WriteLine("Exception in sendMailAlarm: " + ex.ToString(), ConsoleColor.Red);
|
||||||
//Console.WriteLine(e.ToString());
|
//Console.WriteLine(e.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendDailyReportMail(String PdfFile, string mailAdr)
|
||||||
|
|
||||||
public void sendDailyReportMail(String PdfFile, string mailAdr)
|
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user