Leaf Input and Submit

This commit is contained in:
2016-12-06 11:53:30 -05:00
parent a3b8b7a881
commit 6fd7e46f5d
74 changed files with 56144 additions and 1291 deletions
+5 -3
View File
@@ -13,7 +13,7 @@ namespace LeafWeb.WebCms.Services
{
public class EmailNotificationService : IDisposable
{
private static readonly ILog Logger = LogManager.GetLogger(typeof(EmailNotificationService));
private static readonly ILog Logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private readonly string _emailFromAddress;
@@ -78,7 +78,9 @@ namespace LeafWeb.WebCms.Services
body += FormatWarningMessage(leafInput);
if (true)
var downloadLink = true;
if (downloadLink)
{
var downloadUrl = _downloadUrlService.GetDownloadUrl(leafInput);
@@ -160,7 +162,7 @@ namespace LeafWeb.WebCms.Services
{
try
{
Logger.Debug("Email sending to " + mailMessage.To + ", subject: " + mailMessage.Subject);
Logger.Info($"Email sending to {mailMessage.To}, subject: {mailMessage.Subject}");
_smtpClient.Send(mailMessage);
}
catch (SmtpException ex)