This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes A couple questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "A couple questions" Watch "A couple questions" New topic
Author

A couple questions

Kevin McNally
Greenhorn

Joined: Sep 24, 2003
Posts: 6
Whats the easiest way to send email using java? This is isnt on the newest version of java beacuse im creating this program at school. Also, since we are working with multiple applets how in java do you change a web url. Say im at applet1.html and click button A. How do i make it so button a takes me to applet2.html in the browser? Ohh and 1 more thing =], I want to use a combo box..but as far as ive seen ive only seen JComboBox.. nothing to use just in non JApplets.. can they be mixed or is there another type of combobox that i can use for non JApplets?. Thanks.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Whats the easiest way to send email using java
Try a quick search on the Sockets and Internet Protocols forum for "email" and/or "JavaMail" and you're likely to run across a few examples of using the JavaMail API for sending en email from a Java application.
Note that you'll need an SMTP server to connect to in order to send an email. Many Windows machines have an SMTP server installed that just needs to be started in order to make use of it. Otherwise, I'm sure you can run across a free one using google.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Kevin McNally
Greenhorn

Joined: Sep 24, 2003
Posts: 6
do you know how to start the STMP Server for java?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I'm not exactly sure what you mean.
Lots of different SMTP servers have been created, and can be downloaded and installed on most any platform.
As I mentioned, if you're running Windows, they you've likely one from Microsoft already installed on your computer. (Hopefully it isn't running without your intending it.)
Are you perhaps looking for an SMTP server written in Java?
Above you mentioned something about developing an Applet. Note that sending an email from an Applet might be a trickier thing than sending an email from a Java application or a Servlet, since Applets are normally subject to greater security restrictions. I don't really know how difficult it would be to send an email from an Applet, as I've never tried.
 
 
subject: A couple questions
 
Similar Threads
Question about JApplets and JPanels
JApplets and page source
How to invoke JApplets methods
how to use the jre with JApplets
Problem in runnig JApplets