CooMail (1.00)
Demo of CooMail:
CooMail is an Email JavaBean/Applet/Application.
Key features include: 1). support for POP3 and SMTP. 2). communicate with mail servers with
either sockets(ports other than 80) or cgi script. This allows CooMail to get through any limitation
such as firewall or security of Java applet. A smartmode enables CooMail to try sockets and then cgi.
3). support regular email functions such as reply and forward. 4). Auto Message Checking function
allows you check your mail periodically.
Note: CooMail requires a JDK1.1 environment.
IE (4.x) is the best browser to use CooMail as an applet or a JavaBean in an applet.
A regular Netscape 4.x doesn't provide a complete JDK1.1 environment
unless you upgrated it. To upgrate Netscape, go
http://developer.netscape.com/software/jdk/download.html
TheAdware version is FREE.
A major difference between an Adware version and a registered
shareware version is that an ad button whcih allows users to
jump to author's site is included.
I. CooMail As A JavaBean
Properties:
deleteAfterRead - Coomail will remove downloaded mails from server if true
cgiUrl - the URL of mail cgi, coomail.cgi
outPort - default port of outcoming mail, it is set to 25 by default
inPort - default port of incoming mail, it is set to 110 by default
checkMailPeriod - period of Auto Message Checking, default is 60 seconds
autoCheck - CooMail will check and download new messages periodically if true
smartMode - if this feild is set to true, CooMail will try socket connection
first. It will try cgi after socket connection failed.
The key to attach CooMail to your components:
Installation Instructions:
0). Download CooMail at
html/bean_cm.htm
1). Unzip coomail.zip to, say c:\my_bean
you will get following files
c:\my_mail\file_id.diz
c:\my_mail\Readme.txt
c:\my_mail\coomail.jar
c:\my_mail\test_cm2.class
c:\my_mail\test_cm1.htm
c:\my_mail\test_cm2.htm
2). Contain it in a Java applet, say test_cm2.class and
following to instructions in part II below to install the
applet on your server.
Or contain it in a Java application.
3). Install coomail.cgi to handle email through cgi.
If you use CooMail as a bean in an applet or you use it in
an application but the application is used behind a firewall,
coomail.cgi is then necessary. To install coomail.cgi, you
need to
a). upload coomail.cgi to your cgi directory in your server,
say http://www.your-site.com/your-cgi-dir
and make sure its access permission is set to read and executable.
You may test coomail.cgi by browsing
http://www.your-site.com/your-cgi-dir/coomail.cgi?do=test&host=your_host
If you see "coomail.cgi is runable", that means cgi runability, host, incoming port,
and outport port is OK. If you use incoming port other than 110 or outgoing port
other than 25, you need to browse
http://www.your-site.com/your-cgi-dir/coomail.cgi?do=test&host=your_host&inport=your_inport&outport=youroutport
b). set property (if you use Coomail as an applet, you should set parameter. If you use Coomail as an application
you need to set the cgiurl field in option page) cgiurl to
http://www.your-site.com/your-cgi-dir/coomail.cgi
II. CooMail As A Java Applet
Arguments:
width - width of the applet. This is the place where you control
coomail's real size. Coomail will adjust all the components
by itself.
height - height of the applet
deleteAfterRead - Coomail will remove downloaded mails from server if 1
cgiUrl - the URL of mail cgi, coomail.cgi
outPort - default port of outcoming mail, it is set to 25 by default
inPort - default port of incoming mail, it is set to 110 by default
checkMailPeriod - period of Auto Message Checking, default is 60 seconds
autoCheck - CooMail will check and download new messages periodically if 1
smartMode - if this feild is set to 1, CooMail will try socket connection
first. It will try cgi after socket connection failed.
Installation Instructions:
0). Download CooMail at
html/bean_cm.htm
1). Unzip coomail.zip to, say c:\my_mail
you will get following files
c:\my_mail\file_id.diz
c:\my_mail\Readme.txt
c:\my_mail\coomail.jar
c:\my_mail\test_cm2.class
c:\my_mail\test_cm1.htm
c:\my_mail\test_cm2.htm
2). Upload files on to your server, say http://www.mysite.com/
You need to upload following files to your server and you
will get them as following
http://www.mysite.com/coomail.jar
http://www.mysite.com/test_cm2.class
http://www.mysite.com/test_cm2.htm
3). Setup coomail.cgi. See details at section 3 of part I above.
4). Try it online. Browse http://www.mysite.com/test_cm2.htm with IE 4.x
or upgrated Netscape. Note: a regular Netscape browser downloaded
from Netscape won't work. You need to upgrate it to support JDK1.1.
Go
http://www.javaworld.com/javaworld/javatips/jw-javatip51.html?040698txt
to upgrate it.
Or simply switch to IE (4.x)
III. CooMail As A Java Application
command Line Arguments:
Usage:
if you have JDK
java [-mxM1] [-msM2] -classpath [:;] coomail [width] [height]
for example
java -mx16000000 -ms4000000 -classpath .;.\coomail.jar;c:\jdk1.1.5\lib\classes.zip coomail 700 500
or if you have JRE
jre [-mxM1] [-msM2] -classpath [:;] coomail [width] [height]
for example
jre -mx16000000 -ms4000000 -classpath .;coomail.jar;C:\Progra~1\JavaSoft\JRE\1.1\lib\rt.jar coomail 700 500
where
M1 - the maximum Java heap size (bytes)
M2 - the initial Java heap size (bytes)
- the full path to the java classes file distributed with your JVM
- the full path to the rt.jar file included in JRE
[:;] - the path separator. This is ':' on UNIX and ';' on MSDOS and OS/2
- the full path to the coomail.jar file
width - width of the applet. This is the place where you control coomail's real size.
Coomail will adjust all the components by itself.
height - height of the applet
All other features can be set in option page of CooMail. A batch file, coomail.bat, is included so that
you can double click at it to launch Coomail in Windows environment.
Installation Instructions:
0). Download CooMail at
html/bean_cm.htm
1). Unzip coomail.zip to, say c:\my_mail
you will get following files
c:\my_mail\file_id.diz
c:\my_mail\Readme.txt
c:\my_mail\coomail.jar
c:\my_mail\test_cm2.class
c:\my_mail\test_cm1.htm
c:\my_mail\test_cm2.htm
2). In Windows NT or Win95,
if you have a JDK environment, double click at icon of coomail.bat in Windows Explorer
if you have a JRE environment, double click at icon of coomail2.bat in Windows Explorer
3). Setup coomail.cgi if you like to handle email with cgi so that you won't suffer from
firewall. See details at section 3 of part I above.