liulin
2025-06-19 6fdafdef5c457cd5fabebcaedd4e9418979468d6
src/main/java/com/fengdu/gas/common/util/MailUtils.java
@@ -34,6 +34,8 @@
            final Properties props = new Properties();
            props.put("mail.smtp.auth", "true");
            props.put("mail.smtp.host", "smtp.qq.com");
            props.put("mail.smtp.socketFactory.port", "465"); // SSL端口号通常为465
            props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); // 使用SSL套接字工厂
            // 发件人的账号
            props.put("spring:mail:username", USER);