下载
http://commons.apache.org/proper/commons-email/download_email.cgi
使用
http://commons.apache.org/proper/commons-email/userguide.html
Email email =newSimpleEmail();
email.setHostName("smtp.googlemail.com");
email.setSmtpPort(465);
email.setAuthenticator(newDefaultAuthenticator("username","password"));
email.setSSLOnConnect(true);
email.setFrom("user@gmail.com");
email.setSubject("TestMail");
email.setMsg("This is a test mail ... :-)");
email.addTo("foo@bar.com");
email.send();
相关推荐
《Apache Commons Email 1.3.1:Java 邮件发送的核心库》 Apache Commons Email 是一个由 Apache 软件基金会开发的 Java 库,它的主要目标是简化 Java 程序中的电子邮件发送。在Java编程中,邮件发送是一项常见的...
在Java编程中,发送电子邮件是一项常见的任务,Apache Commons Email库为开发者提供了便利的API来实现这一功能。`commons-email-1.1.jar`是Apache Commons Email项目的一个版本,它简化了构建和发送电子邮件的过程。...
commons-attributes-2.2-src.zip commons-attributes-2.2.zip commons-beanutils-1.8.0-BETA-src...validator-1.3.1-src.zip<br>commons-validator-1.3.1.zip<br>commons-vfs-1.0-src.zip<br>commons-vfs-1.0.zip
apache-sanselan-incubating-0.97-bin bcel-5.2 commons-beanutils-1.9.2-bin commons-chain-1.2-bin commons-cli-1.3.1-bin commons-codec-1.10-bin commons-collections4-4.0-bin commons-configuration-1.10-bin...
利用Java写发送邮件程序用的包。具体代码参照本人的博客:Java之发送邮件。
apache commons jar(commons所有的jar包... apache-sanselan-incubating-0.97-bin bcel-5.2 commons-beanutils-1.9.2-bin commons-chain-1.2-bin commons-cli-1.3.1-bin commons-codec-1.10-bin commons-collections4-4
commons-attributes-2.2-src.zip commons-attributes-2.2.zip commons-beanutils-1.8.0-BETA-src...validator-1.3.1-src.zip<br>commons-validator-1.3.1.zip<br>commons-vfs-1.0-src.zip<br>commons-vfs-1.0.zip
commons-attributes-2.2-src.zip commons-attributes-2.2.zip commons-beanutils-1.8.0-BETA-src...validator-1.3.1-src.zip<br>commons-validator-1.3.1.zip<br>commons-vfs-1.0-src.zip<br>commons-vfs-1.0.zip
commons-attributes-2.2-src.zip commons-attributes-2.2.zip commons-beanutils-1.8.0-BETA-src...validator-1.3.1-src.zip<br>commons-validator-1.3.1.zip<br>commons-vfs-1.0-src.zip<br>commons-vfs-1.0.zip
commons-attributes-2.2-src.zip commons-attributes-2.2.zip commons-beanutils-1.8.0-BETA-src...validator-1.3.1-src.zip<br>commons-validator-1.3.1.zip<br>commons-vfs-1.0-src.zip<br>commons-vfs-1.0.zip
commons-attributes-2.2-src.zip commons-attributes-2.2.zip commons-beanutils-1.8.0-BETA-src...validator-1.3.1-src.zip<br>commons-validator-1.3.1.zip<br>commons-vfs-1.0-src.zip<br>commons-vfs-1.0.zip
commons-attributes-2.2-src.zip commons-attributes-2.2.zip commons-beanutils-1.8.0-BETA-src...validator-1.3.1-src.zip<br>commons-validator-1.3.1.zip<br>commons-vfs-1.0-src.zip<br>commons-vfs-1.0.zip
commons-email-1.4.jar commons-fileupload-1.3.1.jar commons-io-2.4.jar commons-lang3-3.3.2.jar commons-logging-1.0.4.jar commons-pool-1.5.4.jar commons-pool2-2.0.jar core-2.2.jar dom4j-1.6.1.jar dozer-...