dcsimg
Problem accessing Inbox
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manish_Prajapati
Posted On:   Saturday, October 11, 2003 04:07 AM

I am trying to accessing Inbox of my Yahoo account using POP and SMTP protocol, but I am getting exception like "Connection timed out". Could you please help me to solve the problem of accessing inboxes and messages in it for any mail server. import javax.mail.*; import javax.mail.internet.*; import java.util.*; public class AccessInbox extends Object { public static void main(String[] args) { //Set up the default parameters Properties props = new Properties(); //Create the session and create a new mail message Session mailSession = Session.   More>>

I am trying to accessing Inbox of my Yahoo account using POP and SMTP protocol, but I am getting exception like "Connection timed out".


Could you please help me to solve the problem of accessing inboxes and messages in it for any mail server.



import javax.mail.*;

import javax.mail.internet.*;

import java.util.*;


public class AccessInbox extends Object

{


public static void main(String[] args)

{

//Set up the default parameters

Properties props = new Properties();



//Create the session and create a new mail message

Session mailSession = Session.getInstance(props);


try

{


//Get the store and connect to the server

URLName urlName = new URLName
("pop3://myusername:mypassword@www.yahoo.com:888/INBOX");
Store mailStore = mailSession.getStore(urlName);

mailStore.connect();

System.out.println("Hello World!");

}

catch(Exception e)

{

System.out.println("Exception: " + e);

}


}

}


   <<Less

Re: Problem accessing Inbox

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, October 13, 2003 06:48 AM

I thought Yahoo doesn't provide POP or IMAP access to their Web-based mailboxes.

About | Sitemap | Contact