|
[Help | API Docs | Short Course| Exercises] In this exercise you will install Sun's JavaMail reference implementation. After installing, you will be introduced to the demonstration programs that come with the reference implementation. TasksDownload the latest version of the JavaMail API implementation from Sun. Download the latest version of the JavaBeans Activation Framework from Sun. Unzip the downloaded packages. You get a ZIP file for all platforms for both packages. Add the Go into the Execute the program passing in a from address with the Check to make sure you received the message with your normal mail reader (Eudora, Outlook Express, pine, ...). Where help exists, the task numbers above are linked to the step-by-step help page. Solution SourceUpon successful completion, the JavaMail reference implementation will be in your DemonstrationAfter executing the following command (replacing the email addresses and specifying your SMTP server): [prompt] java msgsend -o from@address -M SMTP.Server to@address You enter a subject and the message, ending the message with Subject: Hi Welcome ^Z Assuming your CLASSPATH is set properly and your mail server will let you send mail, you'll get the following message displayed: Mail was sent successfully. Next ExerciseExercisesAbout This Short CourseCopyright 1996-2001 jGuru.com. All Rights Reserved. | ||||
|
| ||||||||||||