@@ -0,0 +1,751 @@
+package com.qikemi.packages.email;%0D%0A  %0D%0Aimport javax.mail.*;%0D%0A%0D%0A/**%0D%0A * E-mail MyAuthenticator%0D%0A * %0D%0A * @description %E6%9C%AC%E7%A8%8B%E5%BA%8F%E7%94%A8%E4%BA%8E%E6%9D%A5%E8%87%AA%E8%B0%A2%E5%85%88%E6%96%8C%E6%AF%95%E4%B8%9A%E8%AE%BA%E6%96%87%EF%BC%8C%E5%A6%82%E6%9C%89%E4%BD%BF%E7%94%A8%E8%AF%B7%E8%81%94%E7%B3%BB%E4%BD%9C %E8%80%85%EF%BC%8C%E6%B3%A8%E6%98%8E%E5%87%BA%E5%A4%84%E3%80%82%0D%0A * @URL %E4%BB%A3%E7%A0%81%E5%9C%B0%E5%9D%80%EF%BC%9Ahttp://github.com/openRDF/rdf_fronts%0D%0A * @dateTime 2014-3-22 %E4%B8%8B%E5%8D%886:56:09%0D%0A * @author XieXianbin%0D%0A * @email a.b@hotmail.com%0D%0A *%0D%0A */%0D%0A%0D%0Apublic class MyAuthenticator extends Authenticator%7B  %0D%0A%09%0D%0A    String userName=null;%0D%0A    String password=null;%0D%0A       %0D%0A    public MyAuthenticator()%7B  %0D%0A    %7D  %0D%0A    public MyAuthenticator(String username, String password) %7B   %0D%0A        this.userName = username; %0D%0A        this.password = password; %0D%0A    %7D   %0D%0A    protected PasswordAuthentication getPasswordAuthentication()%7B  %0D%0A        return new PasswordAuthentication(userName, password);%0D%0A    %7D  %0D%0A%7D

add mail authenticator