Leaf Input and Submit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user