Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail From: "Arne Vajhøj" Subject: Re: Looking For program to send email Message-ID: <5031396E.57073.calajapr@time.synchro.net> X-Comment-To: clusardi2k Newsgroups: comp.lang.java.programmer In-Reply-To: <502FD84E.56927.calajapr@time.synchro.net> References: <502FD84E.56927.calajapr@time.synchro.net> X-FTN-AREA: COMP.LANG.JAVA.PROGRAMMER X-FTN-MSGID: 1:261/38 be423374 X-FTN-REPLY: 1:261/38 1bacc17d Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] Lines: 54 Date: Sun, 19 Aug 2012 19:14:20 GMT NNTP-Posting-Host: 69.21.70.65 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1345403660 69.21.70.65 (Sun, 19 Aug 2012 14:14:20 CDT) NNTP-Posting-Date: Sun, 19 Aug 2012 14:14:20 CDT Organization: tds.net X-Received-Bytes: 2637 Xref: csiph.com comp.lang.java.programmer:18137 To: clusardi2k From: "Arne Vajhoj" To: clusardi2k From: "Arne Vajhoj" To: clusardi2k From: "Arne Vajhoj" To: clusardi2k From: Arne Vajhoj On 8/15/2012 2:09 PM, clusardi2k@aol.com wrote: > Does anyone know how to send email. > > Example projects on the Internet don't work for me because the IDE tells me packages do not exist. > > For example, > > import javax.mail.*; //Package does not exist > import javax.mail.internet.*; //Package does not exist For some reason email in Java is part of Java EE not part of Java SE. If you are developing for a Java EE environment just add some Java EE jar file to your IDE's classpath and you are good. The classes will be there at runtime. If you are developing for a Java SE environment you need to get the JavaMail (and its dependency JAF) and put it in classpath for both IDE and runtime. Arne -+- BBBS/Li6 v4.10 Dada-1 + Origin: Prism bbs (1:261/38) -+- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24 -+- BBBS/Li6 v4.10 Dada-1 + Origin: Prism bbs (1:261/38) -+- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24 -+- BBBS/Li6 v4.10 Dada-1 + Origin: Prism bbs (1:261/38) -+- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24 --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24