?
Solved

Java Email

Posted on 1998-06-29
3
Medium Priority
?
203 Views
Last Modified: 2013-11-24
We have Java Email specification?
There is no tutorial for Java email? how to implement Email service in Java.?
0
Comment
Question by:geostp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
gadio earned 100 total points
ID: 1224122
geostp, if you want the complete srevices of pop3 protocol, you had better download one of the many free pop3 packages that are on the net. For example try: http://members.tripod.com/~mpandit/POP3download.html
If however all you want to do is send email using java, you may want to use the SMTP protocol. You can implement the protocol yourself (if you need more information ask), and you can use internal java classes. These classes are not documented but they work ok. Here is the info for using the internal class (use import) sun.net.smtp.SmtpClient :
public synchronized class SmtpClient extends TransferProtocolClient
{
    String mailhost;
    SmtpPrintStream message;
    public SmtpClient()
    public SmtpClient(String string)
    public void closeServer()
    public void from(String string)
    public String getMailHost()
    public PrintStream startMessage()
    public void to(String string)
}

Use the constructor with the url of the mail server. fill the from and the to (through the functions), use the startMessage to get a printstream, to which you write the mail, and finally use the closeServer() to send.
Good luck,
G.
0
 
LVL 6

Expert Comment

by:gadio
ID: 1224123
If you need more info feel free to ask.
0
 

Expert Comment

by:jorgenlindell
ID: 1224124
smtp and POP3 classes are free at my hompage at lgr.se
0

Featured Post

Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question