From e79e265ef0d14b3c97a7690018cb531bca092e19 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 21 Aug 2017 16:44:46 -0400 Subject: [PATCH] smtp env config --- src/Core/GlobalSettings.cs | 4 ++-- util/Setup/Program.cs | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Core/GlobalSettings.cs b/src/Core/GlobalSettings.cs index 194de26341..a4f8f173d3 100644 --- a/src/Core/GlobalSettings.cs +++ b/src/Core/GlobalSettings.cs @@ -87,8 +87,8 @@ namespace Bit.Core public class SmtpSettings { public string Host { get; set; } - public int Port { get; set; } - public bool Ssl { get; set; } + public int Port { get; set; } = 587; + public bool Ssl { get; set; } = true; public string Username { get; set; } public string Password { get; set; } } diff --git a/util/Setup/Program.cs b/util/Setup/Program.cs index b2c912c158..79425596ec 100644 --- a/util/Setup/Program.cs +++ b/util/Setup/Program.cs @@ -392,7 +392,12 @@ globalSettings__duo__aKey={Helpers.SecureRandomString(64, alpha: true, numeric: globalSettings__installation__id={_installationId} globalSettings__installation__key={_installationKey} globalSettings__yubico__clientId=REPLACE -globalSettings__yubico__key=REPLACE"); +globalSettings__yubico__key=REPLACE +globalSettings__mail__smtp__host=REPLACE +globalSettings__mail__smtp__username=REPLACE +globalSettings__mail__smtp__password=REPLACE +globalSettings__mail__smtp__ssl=true +globalSettings__mail__smtp__port=587"); if(!_push) {