Jan 13, 2013 07:23 PM
(This post was last modified: May 29, 2013 04:36 PM by Lottery..)
Hey guys, today I will be teaching you how to use the JavaMail packages to send an Email. I haven't made a tutorial in a while so go easy on me if I get something wrong.
Step #1.
Download JavaMail. You can download the latest JavaMail API here. In this tutorial I am using version 1.4.5, which as of now is the latest, complete version.
Step #2.
Import your JavaMail package by configuring your build path.
Spoiler (Click to View)
Step #3.
Set up your (simple & basic) class file.
Spoiler (Click to View)
Now all you have to do is call sendMail() from one of your other class files. There are many uses for sending Emails by Java. Explore them for yourself. You can modify anything as you would like. As I said in the beginning, I haven't done a tutorial in a while, so tell me if I messed up or forgot something.
Thanks for viewing! I hope you learned something.
P.S. Tell me what you come up with. I would love to see what creative minds people have.
Step #1.
Download JavaMail. You can download the latest JavaMail API here. In this tutorial I am using version 1.4.5, which as of now is the latest, complete version.
Step #2.
Import your JavaMail package by configuring your build path.
Spoiler (Click to View)
Step #3.
Set up your (simple & basic) class file.
Spoiler (Click to View)
Now all you have to do is call sendMail() from one of your other class files. There are many uses for sending Emails by Java. Explore them for yourself. You can modify anything as you would like. As I said in the beginning, I haven't done a tutorial in a while, so tell me if I messed up or forgot something.
Thanks for viewing! I hope you learned something.
P.S. Tell me what you come up with. I would love to see what creative minds people have.



