• Post Reply Bookmark Topic Watch Topic
  • New Topic

Receving Java Mail  RSS feed

 
vivek makode
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I read messages from my yahoo account through my isp's local pop3 server using a simple java application and java mail api?
if yes..... how? I tried the simple application given in jguru's site and it works fine for my local accounts. but how can i read yahoo mails ?
Please help
Thanks in advance
Vivek
 
Jared Krull
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you connect to Yahoo's pop3 directly you should be able to access your mails.
I thing the pop3 you would need is pop.mail.yahoo.com
 
vivek makode
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by fordy:
If you connect to Yahoo's pop3 directly you should be able to access your mails.
I thing the pop3 you would need is pop.mail.yahoo.com

thanks for the reply.
i will try it. do u think i will be able to access yahoo's account directly?
 
Jared Krull
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dont see why not...
Try this...
Open Telnet and connect to pop.mail.yahoo.com on port 110.
You should see a welcome message with "+OK" in it....
Now type "USER yourusername" and press enter. You will get another "+OK". Now type "PASS yourpassword". If you have done it properly you will get another "+OK". Now type "LIST". This will list how many emails you have and how big they are.
All I am trying to show you is that the POP3 protocol is easy to use. The JavaMail API is just a wrapper (not a bad one I hasten to add). If you want to go further with commands to read, delete or download mails look at the RFCs on the web (I cant remember which one applies - but have a look). If you dont want the effort and want to know more quickly try http://www.robjford.com/POP3.htm

------------------
C programmer gone astray
[This message has been edited by fordy (edited October 05, 2001).]
[This message has been edited by fordy (edited October 05, 2001).]
[This message has been edited by fordy (edited October 05, 2001).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!