From 9102aa7e0b42ce5b9667fa3b67fede889df60fc0 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Fri, 02 May 2025 20:08:00 +0800
Subject: [PATCH] /

---
 src/main/resources/spring/applicationContext-email.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/spring/applicationContext-email.xml b/src/main/resources/spring/applicationContext-email.xml
index e1e20ec..6a14205 100644
--- a/src/main/resources/spring/applicationContext-email.xml
+++ b/src/main/resources/spring/applicationContext-email.xml
@@ -38,13 +38,14 @@
 	<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
 		<property name="host" value="${email.host}" />
 		<!-- mail account -->
-		<property name="username" value="${email.username}" />
+		<property name="username" value="${	email.username}" />
 		<property name="password" value="${email.password}" />
 		<property name="javaMailProperties">
 			<props>
 				<prop key="mail.smtp.auth">true</prop>
 				<prop key="mail.smtp.port">465</prop>
 				<prop key="mail.smtp.ssl.enable">true</prop>
+				<prop key="mail.smtp.starttls.enable">true</prop>
 				<prop key="mail.debug">true</prop>
 				<prop key="mail.smtp.host">smtp.gmail.com</prop>
 				<prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>

--
Gitblit v1.9.3