diff --git a/source/DasBlog.Web.Repositories/BlogManager.cs b/source/DasBlog.Web.Repositories/BlogManager.cs index b0a19612..bdb0a977 100644 --- a/source/DasBlog.Web.Repositories/BlogManager.cs +++ b/source/DasBlog.Web.Repositories/BlogManager.cs @@ -466,10 +466,10 @@ private string GetFromEmail() { if (string.IsNullOrWhiteSpace(dasBlogSettings.SiteConfiguration.SmtpFromEmail)) { - return dasBlogSettings.SiteConfiguration.SmtpUserName; + return dasBlogSettings.SiteConfiguration.SmtpUserName?.Trim(); } - return dasBlogSettings.SiteConfiguration.SmtpFromEmail.Trim(); + return dasBlogSettings.SiteConfiguration.SmtpFromEmail?.Trim(); } public bool SendTestEmail() { diff --git a/source/DasBlog.Web.UI/Themes/median/_Layout.cshtml b/source/DasBlog.Web.UI/Themes/median/_Layout.cshtml index dd3cb008..8cef03f8 100644 --- a/source/DasBlog.Web.UI/Themes/median/_Layout.cshtml +++ b/source/DasBlog.Web.UI/Themes/median/_Layout.cshtml @@ -20,7 +20,7 @@