JavaMail First Steps - Hello World Tutorial
(Free Web Tutorials)
by Michael Thomas
JavaMail Home Page
On the JavaMail Home page, you can download
the whole JavaMail site (all content, tutorials & examples) !!!
Objectives
- Use JavaMail to send and receive emails via Hello World type examples.
JavaMail FirstSteps
- Before you continue, you need to complete the following:
- JavaMail must be installed. If it's not installed, click in the
JavaMail Home Page at the top and load the JavaMail Install Tutorial.
- download zip file - Extract the file from the download zip.
If you do not have the zip file, go to the "JavaMail Home Page" (click the
link at the top) and click on the "download" link.
- Use JavaMail to receive emails via SMTP from Pop3 (a Hello World
example)
- Sorry, I have not had time to create the tutorial
(under construction).
More importantly, I do have working examples in the download zip file.
JavaMailReceiveEmailPop3_HelloWorld_
etc... - look at all of these files and the associated .java files.
Make sure you read the _run.bat file to know how to call this batch file and
pass the proper parameters.
- Use JavaMail to send emails via SMTP
- Sorry, I have not had time to create the tutorial
(under construction).
More importantly, I do have working examples in the download zip file.
JavaMailSendEmailSmtp_HelloWorld_ etc...
- look at all of these files and the associated .java files.
Make sure you read the _run.bat file to know how to call this batch file and
pass the proper parameters.
- Warning: This code works with some service providers. I
think others block the use. I need figure this out.