Hello, I've created a GUI and I'm looking to send an email confirmation, when the user clicks enter. Basically it's a competition, and they fill out a form and hit enter. I'm looking to send the email they added in the form an email, with confirmation of their information/choices.. I've no idea how to go about starting this, but I would love to be able to add this to all my programs for college to improve marks, if it isn't too much hassle. Any help will be much appreciated, thanks!
---------- Post added at 02:15 AM ---------- Previous post was at 02:00 AM ----------
I've googled it there, and I've gotten some code, however javax.mail.*; isn't a package ? when I type javax., and look through the packages, it's nowhere to be found?
Anyways I'm off for the night, I'll be on in around 7 or 8 hours, I'll leave it with all you brainboxes! :D
1 reply to this topic
#1
Posted 01 February 2012 - 06:15 PM
|
|
|
#2
Posted 01 February 2012 - 06:40 PM
javax.mail.* is part of the Java EE SDK. If you've only installed the Java SE SDK, you won't have it.
If you have an SMTP (email) server you can send mail with, you could Google how to write an SMTP client in Java. I'm sure there are already pre-built packages out there just for this. Pick your favorite and use that. Just my suggestion.
If you have an SMTP (email) server you can send mail with, you could Google how to write an SMTP client in Java. I'm sure there are already pre-built packages out there just for this. Pick your favorite and use that. Just my suggestion.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









