This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

yogesh naravane

Greenhorn
+ Follow
since Dec 29, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by yogesh naravane

no i am not running this programm behind fire wall
following programm is giving me error as 'NoRoutetoHostException' can
you help me in above problem.
> The programm is as follows:
>
> file://java GetMessageExample <pop.server.com> <username> <password>
>
>
> import java.io.*;
> import java.util.Properties;
> import javax.mail.*;
> import javax.mail.internet.*;
>
> public class GetMessageExample {
> public static void main (String args[]) throws Exception {
> String host = args[0];
> String username = args[1];
> String password = args[2];
>
> // Create empty properties
> Properties props = new Properties();
>
> // Get session
> Session session = Session.getInstance(props, null);
>
> // Get the store
> Store store = session.getStore("pop");
> store.connect(host, username, password);
>
> // Get folder
> Folder folder = store.getFolder("INBOX");
> folder.open(Folder.READ_ONLY);
>
> BufferedReader reader = new BufferedReader(new
InputStreamReader(System.in));
>
> // Get directory
> Message message[] = folder.getMessages();
> for (int i=0, n = message.length;i<n; i++)<br /> > {
> System.out.println(i + ":" + message[i].getFrom()[0] +
> "\t" + message[i].getSubject());
> System.out.println( "Do you want to read message? [YES to
read/QUIT to end]");
> String line = reader.readLine();
>
> // Mark as deleted if appropriate
> if("YES".equals(line)) { message[i].writeTo(System.out); }
> else if ("QUIT".equals(line))
> { break; }
> }
>
> // Close connection
> folder.close(false);
> store.close();}
> }
>
NoRoutetoHostException error encountered
i am using injektilo pop3 server
pop3.connect(pop.mail.yahoo.com);
gives following error www.siski.com is not working for my application

------------------
NoRoutetoHostException error encountered
i am using injektilo pop3 server
C:\yogesh>java GetMessageByPop3 128.11.68.63 <username> <password>
Exception in thread "main" java.net.NoRouteToHostException: Operation timed out:
no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at injektilo.net.Pop3Connection.open(Pop3Connection.java:182)
at GetMessageByPop3.main(GetMessageByPop3.java:18)
what might be the error.
i am using injektilo pop3 server
the code contains pop3.open(mail.server.com);
is error in above line?
usage:java GetMessageExample host username password
e.g. java GetMessageExample www.yahoo.com <username> <password>
error:Connection refused
In the program i am using following lines:
// Get the store
Store store = session.getStore("imap");//("pop3");
store.connect(host, username, password);
is the error in above code .Also if i use pop3 gives error as
NoSuchProvider for pop3.
what should i do?
in running java mail i am getting this error
what is reason?
19 years ago
I am trying to do javamail appln.what else do you require
to run javamail appln other than javamail api?
What is smtp server?where i can get?How to install it?and useit?
19 years ago
I am trying to do javamail appln.what else do you require
to run javamail appln other than javamail api?
What is smtp server?where i can get?How to install it?and useit?