summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Clients/EmailClient.cs
diff options
context:
space:
mode:
authorWouter Tinus <win.acme.simple@gmail.com>2020-10-02 06:04:59 +0200
committerGitHub <noreply@github.com>2020-10-02 06:04:59 +0200
commit160ed1ad546b1a71d0d2a1557073b40983964bfe (patch)
tree1e8a1afd3ee2e75c6ee5e10306fc6df1696b1470 /src/main.lib/Clients/EmailClient.cs
parentc662521de225e4dd4078fc6f0c2d1adfe323e368 (diff)
parentf0390cc9d8d8ffe82c4641f1e09e06d1ca9e12ae (diff)
downloadletsencrypt-win-simple-160ed1ad546b1a71d0d2a1557073b40983964bfe.zip
letsencrypt-win-simple-160ed1ad546b1a71d0d2a1557073b40983964bfe.tar.gz
letsencrypt-win-simple-160ed1ad546b1a71d0d2a1557073b40983964bfe.tar.bz2
Merge pull request #1672 from win-acme/2.1.11v2.1.11
2.1.11
Diffstat (limited to 'src/main.lib/Clients/EmailClient.cs')
-rw-r--r--src/main.lib/Clients/EmailClient.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.lib/Clients/EmailClient.cs b/src/main.lib/Clients/EmailClient.cs
index 0f7f0a0..bbec75e 100644
--- a/src/main.lib/Clients/EmailClient.cs
+++ b/src/main.lib/Clients/EmailClient.cs
@@ -6,7 +6,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
-using System.Reflection;
using System.Threading.Tasks;
namespace PKISharp.WACS.Clients
@@ -32,7 +31,7 @@ namespace PKISharp.WACS.Clients
private readonly string _version;
private readonly IEnumerable<string> _receiverAddresses;
- public EmailClient(ILogService log, ISettingsService settings)
+ public EmailClient(ILogService log, ISettingsService settings, VersionService version)
{
_log = log;
_settings = settings;
@@ -47,7 +46,7 @@ namespace PKISharp.WACS.Clients
if (string.IsNullOrEmpty(_computerName)) {
_computerName = Environment.MachineName;
}
- _version = Assembly.GetEntryAssembly().GetName().Version.ToString();
+ _version = version.SoftwareVersion.ToString();
if (string.IsNullOrWhiteSpace(_senderName))
{