case 4017

This commit is contained in:
2021-10-25 20:50:13 +00:00
parent bd88089b51
commit a1e0416b02
7 changed files with 26 additions and 18 deletions

View File

@@ -64,4 +64,4 @@ using System.Security.Permissions;
// Configure log4net using the .config file
//[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
//[assembly: log4net.Config.XmlConfigurator( ConfigFile="Log4Net.config",Watch=true )]
[assembly: AssemblyFileVersionAttribute("7.6.12.0")]
[assembly: AssemblyFileVersionAttribute("7.6.14.0")]

View File

@@ -45,11 +45,13 @@ namespace GZTW.AyaNova.BLL
if (GZTW.AyaNova.BLL.AyaBizUtils.GlobalSettings.NotifySMTPUseTLS)
mailman.StartTLS = true;
mailman.SmtpUsername = GZTW.AyaNova.BLL.AyaBizUtils.GlobalSettings.NotifySMTPAccount;
mailman.SmtpPassword = GZTW.AyaNova.BLL.AyaBizUtils.GlobalSettings.NotifySMTPPassword;
//case 1382
//if can't use smtp server then log and conditionally abort
//## NOTE: this operation sets up what tls level is being used etc
if (!mailman.SmtpNoop())
{
//case 1608
@@ -166,6 +168,9 @@ namespace GZTW.AyaNova.BLL
// Send mail.
bool success;
success = mailman.SendEmail(email);
#if(DEBUG)
NotifyDeliveryLog.LogSMTPDeliveryMessage("POST TLS version: " + mailman.TlsVersion);
#endif
if (success)
{
NotifyDeliveryLog.LogClientDelivery(n.ClientID, true, "");

View File

@@ -37,6 +37,8 @@ namespace GZTW.AyaNova.BLL
if (GZTW.AyaNova.BLL.AyaBizUtils.GlobalSettings.NotifySMTPUseTLS)
mailman.StartTLS = true;
mailman.SmtpUsername=Login;
mailman.SmtpPassword=Password;