From 23c20628d9f231d0b5baecfa0dd03424025cf3a9 Mon Sep 17 00:00:00 2001 From: Argo-PD Date: Fri, 27 Mar 2020 12:52:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20MailClient=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Comment 测试邮件与正式邮件配置项使用同一个 --- .../Bootstrap.Client/Controllers/ToolsController.cs | 4 ++-- src/client/Bootstrap.Client/appsettings.json | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/client/Bootstrap.Client/Controllers/ToolsController.cs b/src/client/Bootstrap.Client/Controllers/ToolsController.cs index c60406c8..cb4cdc39 100644 --- a/src/client/Bootstrap.Client/Controllers/ToolsController.cs +++ b/src/client/Bootstrap.Client/Controllers/ToolsController.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using Bootstrap.Client.Extensions; using Bootstrap.Client.Models; using Longbow.Data; @@ -51,7 +51,7 @@ namespace Bootstrap.Client } else { - var section = config.GetSection("MailClient"); + var section = config.GetSection("SmtpClient"); var smtpHost = section.GetValue("Host", "smtp.163.com"); var password = section.GetValue("Password", ""); var from = section.GetValue("From", ""); diff --git a/src/client/Bootstrap.Client/appsettings.json b/src/client/Bootstrap.Client/appsettings.json index 26ecb2e5..a021ec13 100644 --- a/src/client/Bootstrap.Client/appsettings.json +++ b/src/client/Bootstrap.Client/appsettings.json @@ -56,14 +56,6 @@ "From": "honeywell_mes@163.com", "To": "argo@163.com" }, - "MailClient": { - "Host": "smtp.exmail.qq.com", - "Port": 587, - "EnableSsl": true, - "Password": "", - "From": "ba-support@dsnixi.com", - "To": "argo@163.com" - }, "AllowOrigins": "http://localhost,http://argo.zylweb.cn", "LongbowCache": { "Enabled": true,