首页>代码>java通过授权码机制调用腾讯邮箱smtp服务发送邮件>/zuidaima_send_mail/src/mail/UserAuthenticator.java
package mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class UserAuthenticator extends Authenticator {
       
	/**邮件地址*/
	private String mailAddr;
	
	/**邮件密码*/
	private String mailPass;
	
	
	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(mailAddr, mailPass);
	}
	

	public String getMailAddr() {
		return mailAddr;
	}

	public void setMailAddr(String mailAddr) {
		this.mailAddr = mailAddr;
	}

	public String getMailPass() {
		return mailPass;
	}

	public void setMailPass(String mailPass) {
		this.mailPass = mailPass;
	}
	
	
	
}
最近下载更多
annazhang  LV29 2023年4月8日
crosa_Don  LV18 2023年2月8日
duanzhouyang  LV10 2021年1月4日
1355862436  LV9 2020年10月15日
数据库1  LV12 2020年7月30日
qiu臻至慕青  LV1 2020年6月22日
zhoumeng1  LV12 2020年5月20日
lzy6312  LV14 2020年5月15日
1529860026  LV24 2020年4月15日
周大福  LV12 2020年2月27日
最近浏览更多
eternity2002  LV2 3月6日
pgiddd 2023年6月7日
暂无贡献等级
annazhang  LV29 2023年4月8日
crosa_Don  LV18 2023年2月8日
wqedqwd 2023年1月15日
暂无贡献等级
Tuxxxxx  LV3 2023年1月3日
wl010101  LV9 2022年10月22日
Rucoding  LV7 2022年9月1日
kahvia  LV1 2022年5月8日
cxl19991 2022年3月8日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友