/
zj
2025-05-02 9102aa7e0b42ce5b9667fa3b67fede889df60fc0
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>