Zwischenstand Okt 2020 (6.0.9)
This commit is contained in:
parent
c35ed3707e
commit
eb49b4ec86
Binary file not shown.
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
[assembly: AssemblyCompany("schick Informatik")]
|
[assembly: AssemblyCompany("schick Informatik")]
|
||||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||||
[assembly: AssemblyInformationalVersion("6.0.8")]
|
[assembly: AssemblyInformationalVersion("6.0.9")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2014-2020 schick Informatik")]
|
[assembly: AssemblyCopyright("Copyright © 2014-2020 schick Informatik")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("6.0.8.*")]
|
[assembly: AssemblyVersion("6.0.9.*")]
|
||||||
|
|
||||||
|
|||||||
@ -145,8 +145,12 @@ namespace bsmd.email
|
|||||||
|
|
||||||
public static void SendSystemInfo(string subject, string body, string recipient)
|
public static void SendSystemInfo(string subject, string body, string recipient)
|
||||||
{
|
{
|
||||||
using (BSMDMail mailer = new BSMDMail())
|
using BSMDMail mailer = new BSMDMail();
|
||||||
|
if(recipient.Equals(Properties.Settings.Default.POP3User, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
log.Warn("system info recipient is pop3 user, skipping send to avoid loops");
|
||||||
|
return;
|
||||||
|
}
|
||||||
MailMessage message = new MailMessage();
|
MailMessage message = new MailMessage();
|
||||||
MailAddress fromAddress = new MailAddress(Properties.Settings.Default.Sender);
|
MailAddress fromAddress = new MailAddress(Properties.Settings.Default.Sender);
|
||||||
message.From = fromAddress;
|
message.From = fromAddress;
|
||||||
@ -170,7 +174,6 @@ namespace bsmd.email
|
|||||||
log.ErrorFormat("other error while sending e-mail:{0}", ex.Message);
|
log.ErrorFormat("other error while sending e-mail:{0}", ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static void SendSystemInfoAsync(string subject, string body, string recipient)
|
public static void SendSystemInfoAsync(string subject, string body, string recipient)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user