diff --git a/src/Ghosts.Client/Handlers/Outlook.cs b/src/Ghosts.Client/Handlers/Outlook.cs index d9facd1d..95be0e01 100755 --- a/src/Ghosts.Client/Handlers/Outlook.cs +++ b/src/Ghosts.Client/Handlers/Outlook.cs @@ -371,7 +371,7 @@ private bool SendEmailViaOutlook(EmailConfiguration emailConfig) //Add subject if (!string.IsNullOrWhiteSpace(emailConfig.Subject)) { - mailItem.Subject = emailConfig.Subject; + mailItem.Subject = emailConfig.Subject.GetTextBetweenQuotes(); } Log.Trace($"Setting message subject to: {mailItem.Subject}"); diff --git a/src/Ghosts.Client/Properties/AssemblyInfo.cs b/src/Ghosts.Client/Properties/AssemblyInfo.cs index 93815518..b0e42912 100755 --- a/src/Ghosts.Client/Properties/AssemblyInfo.cs +++ b/src/Ghosts.Client/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("8.0.0.0")] [assembly: AssemblyInformationalVersion("8.0.0.0")] -[assembly: AssemblyFileVersion("8.0.7.70")] +[assembly: AssemblyFileVersion("8.0.7.75")] diff --git a/src/Ghosts.Domain/Code/Helpers/StringExtensions.cs b/src/Ghosts.Domain/Code/Helpers/StringExtensions.cs index 61613d0d..13a3848e 100644 --- a/src/Ghosts.Domain/Code/Helpers/StringExtensions.cs +++ b/src/Ghosts.Domain/Code/Helpers/StringExtensions.cs @@ -30,7 +30,7 @@ public static string GetTextBetweenQuotes(this string o) { var result = Regex.Match(o, "\"([^\"]*)\"").ToString(); if (!string.IsNullOrEmpty(result)) - result = result.TrimStart('"').TrimEnd('"'); + result = result.Trim().TrimStart('"').TrimEnd('"'); return result; }