|
@@ -29,7 +29,7 @@ public class sendEmailController {
|
|
|
//1、创建定义整个应用程序所需的环境信息的 Session 对象
|
|
|
Session session = Session.getDefaultInstance(prop, new Authenticator() {
|
|
|
public PasswordAuthentication getPasswordAuthentication() {
|
|
|
- return new PasswordAuthentication("it@feilihua.com", "Flh@2022");//发件人邮件用户名、授权码
|
|
|
+ return new PasswordAuthentication("it@feilihua.com", "wtXLHBFWTEo3qSkn");//发件人邮件用户名、授权码
|
|
|
}
|
|
|
});
|
|
|
session.setDebug(true);//开启Session的debug模式,这样就可以查看到程序发送Email的运行状态
|