admin
2023-04-12 651f2856e9ae10aacbfb8327d967aacbb6d58333
fanli/src/main/java/com/yeshi/fanli/util/email/MyAuthenticator.java
@@ -1,21 +1,21 @@
package com.yeshi.fanli.util.email;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
public class MyAuthenticator extends Authenticator {
   String userName = null;
   String password = null;
   public MyAuthenticator() {
   }
   public MyAuthenticator(String username, String password) {
      this.userName = username;
      this.password = password;
   }
   protected PasswordAuthentication getPasswordAuthentication() {
      return new PasswordAuthentication(userName, password);
   }
}
package com.yeshi.fanli.util.email;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
public class MyAuthenticator extends Authenticator {
   String userName = null;
   String password = null;
   public MyAuthenticator() {
   }
   public MyAuthenticator(String username, String password) {
      this.userName = username;
      this.password = password;
   }
   protected PasswordAuthentication getPasswordAuthentication() {
      return new PasswordAuthentication(userName, password);
   }
}