Introduction
The SMTP protocol can be used to send and reseive of eMails but also for other
tasks. This is a class library that implements the SMTP protocol to send eMails,
ask the mail server for eMail addresses and so on. The implementation isn't
a big problem. You only have to implement classes for all objects in the RFC
specification 821.
This implementation of the eMail protocol is not for standart applications.
The reason is the Java Mail API as a standart extension of the Java class library.
This API is more comfortable and include different mailing protocols. So it
is the better way to use this API to send eMails.
Version 2 for Java version 5 and above
Version 2 uses the generics for classen like Vector, Iterator and other availible
since Java version 5. This eliminates the Warnings during the compilation and
the implementation are type save.
These are the source and binary files of the first version of the package:
| File |
Size |
Content |
| LongMail_src_2_0_Alpha.zip |
76.496 Byte |
- Source files of the package de.longsoft.comm.smtp version 2.0 Alpha.
- Source files of the package de.longsoft.comm.email version 2.0 Alpha.
- Source files of the package de.longsoft.Utilities version 2.0.
- Source files of the package de.longsoft.LongMail with a litle test
application which can send eMails.
|
| LongMail_bin_2_0_Alpha.zip |
62.321 Byte |
jar files with the compiled class files. |
There are two possibilities to build packages:
- Using a IDE (e.g. Eclipse)
Create tree new projects in the workspace of the IDE, one for LongMail_2_0
and one for Utilities_2_0. Copy all source files inclusive directories in
the src directories of the projects. Add the Utilities to the project properties
of the LongMail_2_0 project. In the Run dialog add the class de.longsoft.LongMail.LongMail
as the main class. Compile and start.
- Working with Ant
Create the following dirctory structure:
./--+ release
+ debug
+ LongMail
+
src
+
bin
Unpack the archiv with the sources in the src directory inclusive of the pathes
of the zip file. Enter the four directorys with the source files and execute
'ant release'. In the bin directory will be stored the compiled classes and
in the release directory the jar files. Change to the release directory start
the test programm with
'java -jar LongMail_2_0.jar' .
You can see the following:

You can generate a documentation of the package using JavaDoc.
Version 1 for Java up to version 1.4.x
Version 1 uses the not type save version of classen like Vector, Iterator.
If you compile this version with Java version 5 or above some Warnings occurs.
These are the source and binary files of the first version of the package:
|
File
|
Size |
Content
|
| LongMail_src_1_0_1.zip |
76.468 Byte |
- Source files of the package de.longsoft.comm.smtp version 1.0.1.
- Source files of the package de.longsoft.comm.email version 1.0.1.
- Source files of the package de.longsoft.Utilities version 1.2.
- Source files of the package de.longsoft.LongMail with a litle test
application which can send eMails.
|
| LongMail_bin_1_0_1.zip |
56.193 Byte |
jar files with the compiled class files. |
There are two possibilities to build packages:
- Using a IDE (e.g. Eclipse)
Create tree new projects in the workspace of the IDE, one for LongMail_1_0
and one for Utilities_1_2. Copy all source files inclusive directories in
the src directories of the projects. Add the Utilities to the project properties
of the LongMail_1_0 project. In the Run dialog add the class de.longsoft.LongMail.LongMail
as the main class. Compile and start.
- Working with Ant
Create the following dirctory structure:
./--+ release
+ debug
+ LongMail
+
src
+
bin
Unpack the archiv with the sources in the src directory inclusive of the pathes
of the zip file. Enter the four directorys with the source files and execute
'ant release'. In the bin directory will be stored the compiled classes and
in the release directory the jar files. Change to the release directory start
the test programm with
'java -jar LongMail_1_0.jar' .
You can see the following:

You can generate a documentation of the package using JavaDoc.
© Ralf Lange, longsoft Dresden
Comments & suggestions: webmaster
form - Last Modification: 2008-07-06
Java and all Java based trademarks and logos are trademarks or registered trademarks of Sun Microsystems,
Inc. in the USA and in other countries. All other mentioned companies and product names are trademarks
or registered trademarks of each manufacturer.