|
[Exercise | API Docs | Short Course| Exercises] Help is available for each task. Task 1Download the latest version of the JavaMail API implementation from Sun. Task 2Download the latest version of the JavaBeans Activation Framework from Sun. Task 3Unzip the downloaded packages. You get a ZIP file for all platforms for both packages. You can use the Task 4Add the Copy the files to your extension library directory. For Microsoft Windows, and using the default installation copy, the command might look like the following: cd \javamail-1.2 copy mail.jar \jdk1.3\jre\lib\ext cd \jaf-1.0.1 copy activation.jar \jdk1.3\jre\lib\ext If you don't like copying the files to the exention library directory, detailed instructions are available from Sun for setting your CLASSPATH on Windows NT. Task 5Go into the javac msgsend.java Task 6Execute the program passing in a from address with the Be sure to replace the from address, SMTP server, and to address. java msgsend -o from@address -M SMTP.Server to@address If you are not sure of your SMTP server, contact your system adminstrator or check with your Internet Service Provider. Task 7Check to make sure you received the message with your normal mail reader (Eudora, Outlook Express, pine, ...). Copyright 1996-2001 jGuru.com. All Rights Reserved. | ||||||||
|
| ||||||||||||