提交 | 用户 | 时间 | ||
58d006 | 1 | package com.mandi.common.mail; |
A | 2 | |
3 | import javax.mail.Authenticator; | |
4 | import javax.mail.PasswordAuthentication; | |
5 | ||
6 | public class Ma extends Authenticator{ | |
7 | public static final String userName = "mlyong108@126.com"; | |
8 | public static final String passWord = "menglingyong"; | |
9 | @Override | |
10 | protected PasswordAuthentication getPasswordAuthentication() { | |
11 | return new PasswordAuthentication(userName, passWord); | |
12 | } | |
13 | } |