Hi
I want to comunicate with POP3 server. In POP3 server
I want to retrive emailid(from,and to),subject,message and
store it in the Oracle database.
Could u give me the details and about POP3 protocal server?.
-irapy
-
Want to comunicate with POP3 server (7 messages)
- Posted by: irapy irapy
- Posted on: August 22 2000 16:23 EDT
Threaded Messages (7)
- Want to comunicate with POP3 server by Lofi Dewanto on August 22 2000 16:59 EDT
- Want to comunicate with POP3 server by irapy irapy on August 23 2000 15:58 EDT
-
Want to comunicate with POP3 server by irapy irapy on August 23 2000 05:32 EDT
- Want to comunicate with POP3 server by Lofi Dewanto on August 26 2000 08:25 EDT
- Want to comunicate with POP3 server by Gavin Spurling on September 04 2000 09:34 EDT
-
Want to comunicate with POP3 server by irapy irapy on August 23 2000 05:32 EDT
- Want to comunicate with POP3 server by irapy irapy on August 23 2000 15:58 EDT
- Want to comunicate with POP3 server by Narasimha Rao N on September 03 2000 09:10 EDT
- Want to comunicate with POP3 server by Narasimha Rao N on September 03 2000 09:11 EDT
-
Want to comunicate with POP3 server[ Go to top ]
- Posted by: Lofi Dewanto
- Posted on: August 22 2000 16:59 EDT
- in response to irapy irapy
Hi!
You can look at:
http://java.sun.com/products/javamail
You'll find the implementation for Java Mail in that site.
Hope this helps.
Lofi. -
Want to comunicate with POP3 server[ Go to top ]
- Posted by: irapy irapy
- Posted on: August 23 2000 15:58 EDT
- in response to Lofi Dewanto
Hi
Can i get source code for this
-
Want to comunicate with POP3 server[ Go to top ]
- Posted by: irapy irapy
- Posted on: August 23 2000 17:32 EDT
- in response to irapy irapy
Hi
I want to get the message from POP3 server.
The program which I used is
//It retrives the messages from POP3 server
import javax.mail.*;
import javax.mail.internet.*;
public class GetMessageFromPOP3 {
public static void main (String args[])
throws Exception {
String host = args[0];
String username = args[1];
String password = args[2];
// Get session
Session session = Session.getInstance(
System.getProperties(), null);
// Get the store
Store store = session.getStore("pop3");
store.connect(host,110, username, password);
// With out port no
//store.connect(host,username, password);
// Get folder
Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_ONLY);
// Get directory
Message message[] = folder.getMessages();
for (int i=0, n=message.length; i<n; i++) {
System.out.println(i + ": "
+ message[i].getFrom()[0]
+ "\t" + message[i].getSubject());
}
// Close connection
folder.close(false);
store.close();
}
}
But it Gives Error:
C:\javamailcollections>java GetMessageFromPOP3 mail.bigthings.com irapy xyz
Exception in thread "main" javax.mail.NoSuchProviderException: No provider for p
op3
at javax.mail.Session.getProvider(Session.java:249)
at javax.mail.Session.getStore(Session.java:323)
at javax.mail.Session.getStore(Session.java:303)
at GetMessageFromPOP3.main(GetMessageFromPOP3.java, Compiled Code)
So what should i give in the place of host.
please give me more details about the POP3 Servers.
-irapy
-
Want to comunicate with POP3 server[ Go to top ]
- Posted by: Lofi Dewanto
- Posted on: August 26 2000 08:25 EDT
- in response to irapy irapy
Hi!
Protocol: pop3
Server: for example pop.mail.yahoo.com
There is a good examples with the JavaMail
(at the \demo folder). I think, it would
help you in this case.
Lofi.
-
Want to comunicate with POP3 server[ Go to top ]
- Posted by: Gavin Spurling
- Posted on: September 04 2000 09:34 EDT
- in response to irapy irapy
The POP3 provider is not part of the standard JavaMail download. You'll have to download the pop3.jar seperatly and include it in your classpath. I'm pretty sure you can grab it from the java.sun.com site with the other java mail downloads.
Cheers,
Gavin. -
Want to comunicate with POP3 server[ Go to top ]
- Posted by: Narasimha Rao N
- Posted on: September 03 2000 09:10 EDT
- in response to irapy irapy
Hello,
Java Beans Avtivation Frame work API will take care about the security restrictions. So, download it and make a class path for that.
Subjects, Messages, To and Fro addresses any way you will get it thru pop3 protocol. So, you can easily store it on Oracle database. by establishing the jdbc connection.
regards,
Narasimha.
-
Want to comunicate with POP3 server[ Go to top ]
- Posted by: Narasimha Rao N
- Posted on: September 03 2000 09:11 EDT
- in response to irapy irapy
Hello,
Java Beans Avtivation Frame work API will take care about the security restrictions. So, download it and make a class path for that.
Subjects, Messages, To and Fro addresses any way you will get it thru pop3 protocol. So, you can easily store it on Oracle database. by establishing the jdbc connection.
I will try here and send the source code within a day.
regards,
Narasimha.