From 341b176f41ffd2157b927ea7cb9810c9f2ac9adb Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 18 May 2022 15:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Common/MailService.cs | 8 ++++---- .../Service/SiteSurvey/TrialSiteSurveyService.cs | 6 +++--- .../Service/TrialSiteUser/TrialExternalUserService.cs | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Common/MailService.cs b/IRaCIS.Core.Application/Service/Common/MailService.cs index c982d8b33..855f51cbe 100644 --- a/IRaCIS.Core.Application/Service/Common/MailService.cs +++ b/IRaCIS.Core.Application/Service/Common/MailService.cs @@ -75,7 +75,7 @@ namespace IRaCIS.Application.Services smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -128,7 +128,7 @@ namespace IRaCIS.Application.Services smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -182,7 +182,7 @@ namespace IRaCIS.Application.Services smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -238,7 +238,7 @@ namespace IRaCIS.Application.Services smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index bc06ea2b6..902179524 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -607,7 +607,7 @@ namespace IRaCIS.Core.Application.Contracts smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -862,7 +862,7 @@ namespace IRaCIS.Core.Application.Contracts smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -994,7 +994,7 @@ namespace IRaCIS.Core.Application.Contracts }; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs index 9700686d1..04c05d361 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs @@ -269,7 +269,7 @@ namespace IRaCIS.Core.Application.Service smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -372,7 +372,7 @@ namespace IRaCIS.Core.Application.Service smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -495,7 +495,7 @@ namespace IRaCIS.Core.Application.Service smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH"); @@ -668,7 +668,7 @@ namespace IRaCIS.Core.Application.Service smtp.ServerCertificateValidationCallback = (s, c, h, e) => true; - await smtp.ConnectAsync("smtp.163.com", 25, SecureSocketOptions.StartTls); + await smtp.ConnectAsync("smtp.163.com", 465, SecureSocketOptions.StartTls); await smtp.AuthenticateAsync("iracis_grr@163.com", "XLWVQKZAEKLDWOAH");