• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

How to retrive messages through proxy??

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai to all
I have to retrive list of message from gmail,rediffmail etc,. using pop3 and display the ID and Subject
I am connecting the internet through proxy I can able to send the message,
also retrive the list of message from local mail server but i am not able to retrive messages from gmail,rediffmail etc,. through proxy my program cannot able to find gmail.com or rediffmail.com
I don't know how to set the proxy ip and port to the properties

give the possible solution please
 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How will you authenticate the gmail, yahoo, hotmail servers (POP3 or SMTP) with the valid userid/password?
 
Madhu Kaparapu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the code snippet that will authnticate for usename and password

Session session = Session.getDefaultInstance(props, null);

// Get the store
Store store = session.getStore("pop3");

// Connect to store
store.connect(host, username, password);

// Get folder
Folder folder = store.getFolder("INBOX");

but my program can't able to find the host which i am giving; i have to tell
yuu search through the given proxy ip address for the given host address
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For users in local host (local POP3 server) you can manage to get the passwords but what will you do for email ids on different pop3 servers like Yahoo, hotmail whose host info can be obtained but passwords cannot be fetched or obtained.

rgds,

seetesh
 
Nothing up my sleeve ... and ... presto! A tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic