1
zj
2025-02-11 497b9bc9d0ef6f877325e74b02a7133de772ddae
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>