AppMailer.java :  » Scripting » tinyappserver » cn » aprilsoft » TinyAppServer » mailer » Java Open Source

Java Open Source » Scripting » tinyappserver 
tinyappserver » cn » aprilsoft » TinyAppServer » mailer » AppMailer.java
package cn.aprilsoft.TinyAppServer.mailer;

import cn.aprilsoft.conf4j.Conf4j;
import cn.aprilsoft.mail.Mailer;

public class AppMailer {

    private static String smtp     = Conf4j.getTrimProperty(AppMailer.class, "smtp");

    private static String from     = Conf4j.getTrimProperty(AppMailer.class, "from");

    private static String username = Conf4j.getTrimProperty(AppMailer.class, "username");

    private static String password = Conf4j.getTrimProperty(AppMailer.class, "password");

    private static Mailer mailer   = Mailer.create(smtp, from, username, password);

    private AppMailer() {
    }

    public static Mailer getMailer() {
        return mailer;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.