Jodd发送邮件

public static void main(String[] args) {
        Email email = Email.create().from("xxx")
                .to("xxx@163.com").subject("test").addText("Hello!");
        SmtpServer smtpServer = SmtpSslServer.create("smtp.qq.com")
                .authenticateWith("xxx@qq.com", "xxx");
        SendMailSession session = smtpServer.createSession();
        session.open();
        session.sendMail(email);
        session.close();
    }
原文地址:https://www.cnblogs.com/luoxiaolei/p/6269242.html