|
Home |
Training |
Services |
Free Stuff |
Company |
Customers |
Forum |
Contact |
Careers |
||
|
SMTPClient: Email from Java Applications SMTPClient is a lightweight SMTP (Simple Mail Transport Protocol) wrapper. Using this class (with the companion SMTPAddress class), Java developers can easily send email from any Java application (assuming, of course, there is visibility to an SMTP server). SMTPClient supports basic email features, including:
Because this is intended to be a lightweight SMTP wrapper, a few common email features are notably missing from this implementation, including:
The following code snippet illustrates how easy it is to send email with SMTPClient: (Note: Not all features of the class are demonstrated here.)
(Note: This code is written for use with the JDK 1.3 socket API. It has not been tested with other JDK versions.) To download the JAR file containing the source and class files for SMTPClient, plus the relevant Javadocs, click here. To view the Javadoc for the SMTPClient class, click here. For a great, no-cost SMTP server for Windows, check out PostCast Server (www.PostCast.com, look for the "PostCast Server" free product). This server provides basic mail sending services and integrates quickly and easily with SMTPClient. |
||